Loading advisory.
Loading advisory.
NocoDB: Reflected Cross-Site Scripting via Password Reset Token
The password-reset page rendered the URL token directly into a JavaScript string literal in a server-rendered EJS template.
Published 2026-06-05 15:59 UTC · Modified 2026-07-20 21:30 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| nocodb | npm | < 2026.04.1 | 2026.04.1 | npm install nocodb@2026.04.1 |
The password-reset page rendered the URL token directly into a JavaScript string literal in a server-rendered EJS template. EJS <%= %> HTML-entity-encodes a fixed set of characters but does not escape single quotes or backslashes, so a crafted token could break out of the JS string context and execute attacker-controlled script in the NocoDB origin. Triggering required only that a victim follow a malicious password-reset link.
The vulnerable template embedded the token as:
token: '<%= token %>',A token containing ';alert(document.cookie);// closes the single-quoted string and runs arbitrary JavaScript. The fix moves the token into an HTML attribute (data-token="…") and reads it from dataset.token at runtime, so EJS's HTML-entity escaping is sufficient.
Reflected XSS in the NocoDB origin via a phished password-reset URL.
No authentication required to trigger; affects any user who clicks the crafted link.
Same-origin script can read auth state and act on the victim's behalf.
This issue was reported by @fg0x0.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
One EPSS score on record: 0.004 on 2026-11-24.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.004 | first score | v2026.06.15 |