Skip to main content

NocoDB EUVDEUVD-2026-38627

| CVE-2026-47376 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-06-05 https://github.com/nocodb/nocodb GHSA-6xcx-7qmg-vjfq
5.1
CVSS 4.0 · Vendor: https://github.com/nocodb/nocodb
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious password-reset URL with token XSS payload
  2. Delivery
    Deliver phishing link to NocoDB user
  3. Exploit
    Victim clicks link, browser requests reset page
  4. Execution
    NocoDB EJS template renders token into JS string literal
  5. Persist
    Payload breaks string context, executes arbitrary script in NocoDB origin
  6. Impact
    Exfiltrate auth cookies or session tokens to attacker

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The victim must be a user of a NocoDB instance running a version prior to 2026.04.1, and must click or follow a crafted password-reset URL delivered by the attacker - typically via phishing email or social engineering. No authentication is required from the attacker. No special server-side configuration is needed beyond NocoDB being deployed with the password-reset-by-email feature enabled, which is a standard NocoDB capability. Exploitation is limited by the requirement for victim user interaction: the attacker cannot exploit this remotely without the victim actively clicking the malicious link. The attack does not work against victims who verify URL integrity or operate in environments that block external links. Exploitation is further limited to the NocoDB application origin - the injected script cannot directly access other domains due to browser same-origin policy, but it can read any cookies or localStorage values scoped to the NocoDB origin.

Impact

No CVSS vector was published with this advisory, so quantitative scoring signals (attack vector, complexity, privilege requirements, scope, impact) cannot be directly cited. Based on the advisory description: the attack vector is network (victim must follow a URL), no authentication is required on the attacker's part, and user interaction is required (the victim must click a phishing link). The impact is meaningful - same-origin script execution enables reading authentication cookies, session tokens, and acting on the victim's behalf within the NocoDB application, which qualifies as a confidentiality and integrity impact against the user's session. No EPSS score is available, and this CVE is not listed in the CISA KEV catalog. The advisory provides a working proof-of-concept payload, lowering the barrier to exploitation. Realistic risk is moderate-to-high for internet-facing NocoDB instances, particularly those used by teams with sensitive data, because the phishing step is the only obstacle - once a user clicks the link, exploitation is reliable and requires no further attacker interaction. Organizations running NocoDB as an internal tool with strong anti-phishing controls face lower realistic risk.

Exploit ScenarioDerived

An attacker constructs a NocoDB password-reset URL where the token parameter is set to ';alert(document.cookie);// or a more sophisticated payload designed to exfiltrate session cookies to an attacker-controlled server. The attacker delivers this URL to a target NocoDB user via email or messaging (phishing). When the victim clicks the link, NocoDB's server renders the EJS template with the malicious token embedded into the JavaScript block, causing the payload to execute in the victim's browser within the NocoDB origin, granting the attacker the victim's authentication state. The advisory's published payload confirms this attack path is trivially reproducible.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 05, 2026

Reflected XSS in NocoDB's password-reset flow allows an unauthenticated attacker to execute arbitrary JavaScript in the victim's browser within the NocoDB origin by sending a crafted password-reset link. The vulnerability stems from the EJS server-side template rendering the reset token directly into a JavaScript string literal without escaping single quotes or backslashes, enabling string-context escape. Any NocoDB instance running versions prior to 2026.04.1 is affected; no public exploit identified at time of analysis, though the advisory includes a functional proof-of-concept payload.

RemediationAI

Upgrade NocoDB to version 2026.04.1 or later, which resolves the vulnerability by moving the reset token from a JavaScript string literal into an HTML data attribute, making EJS's default HTML entity encoding sufficient to prevent injection. The patched release is available at https://github.com/nocodb/nocodb/releases/tag/2026.04.1. If an immediate upgrade is not possible, a specific compensating control is to configure a reverse proxy or WAF rule to reject or sanitize password-reset requests where the token parameter contains single quotes, backslashes, or JavaScript-significant characters such as semicolons and parentheses - though this approach may inadvertently block legitimate tokens if the token character space is not well-defined. A second compensating control is to disable the password-reset-by-email feature entirely if it is not operationally required, removing the attack surface. Both workarounds carry operational trade-offs: the WAF rule may cause false positives, and disabling password reset forces manual admin intervention for credential recovery.

Affected VersionsENISA

nocodb < 2026.04.1

Affected Packages

npm nocodb fix: 2026.04.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

NocoDB (pkg:npm/nocodb) uses the EJS templating engine for server-rendered HTML pages. EJS's default output tag (<%= %>) applies HTML entity encoding to a limited character set - specifically angle brackets, ampersands, and double quotes - but does NOT escape single quotes or backslashes. The vulnerable password-reset template embedded the URL-supplied token directly inside a JavaScript string literal delimited by single quotes: token: '<%= token %>',. Because EJS does not sanitize single quotes in this context, an attacker-supplied token containing ';alert(document.cookie);// terminates the string, injects executable JavaScript, and comments out the remainder of the line. CWE-79 (Improper Neutralization of Input During Web Page Generation) is the root cause class: user-controlled data flows into an executable code context without context-appropriate escaping. The fix correctly separates data from code by moving the token into an HTML data attribute (data-token="..."), where EJS HTML-entity encoding is sufficient, and reading it via dataset.token at runtime.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/nocodb/nocodb) PRIMARY 5.1 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/nocodb/nocodb) · only source for this CVE.

CVSS VectorVendor: https://github.com/nocodb/nocodb

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

Lifecycle Timeline

1
CVSS changed
Jun 23, 2026 - 21:22 NVD
5.1 (MEDIUM)

DescriptionCVE.org

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:

ejs
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.

Threat Intelligence Overview

EPSS Score
0.1%
Top 74% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy