CVE-2026-47376
Published:June 05, 2026
Updated:June 06, 2026
Summary 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. Details 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. Impact - 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. Credit This issue was reported by "@fg0x0" (https://github.com/fg0x0).
Affected Packages
https://github.com/nocodb/nocodb.git (GITHUB):
Affected version(s) >=crea <2026.04.1Fix Suggestion:
Update to version 2026.04.1nocodb (NPM):
Affected version(s) >=0.0.1 <2026.04.1Fix Suggestion:
Update to version 2026.04.1Related Resources (3)
Do you need more information?
Contact UsCVSS v4
Base Score:
5.1
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
ACTIVE
Vulnerable System Confidentiality
LOW
Vulnerable System Integrity
LOW
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
5.4
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Weakness Type (CWE)
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')