Skip to main content

NocoDB EUVDEUVD-2026-38602

| CVE-2026-53929 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-06-17 https://github.com/nocodb/nocodb GHSA-6mhr-74x2-98v9
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
    Attacker obtains NocoDB upload permission
  2. Delivery
    Uploads crafted .svg/.html with embedded script
  3. Exploit
    Victim opens attachment link in browser
  4. Execution
    Express drops Content-Disposition header due to key mismatch
  5. Persist
    Browser renders file inline on NocoDB origin
  6. Impact
    Script exfiltrates auth JWT from localStorage

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

Exploitation requires two specific conditions to be simultaneously true: (1) the attacker must hold an authenticated NocoDB account with upload permission on at least one base - anonymous or read-only access is insufficient; (2) the target NocoDB instance must be configured with the environment variable NC_SECURE_ATTACHMENTS=true, which is a non-default opt-in setting. Additionally, a victim with a valid session must open the malicious attachment link in a browser, providing the user-interaction prerequisite. Exploitation is limited by the requirement for authenticated upload access (prevents purely external attackers), the non-default configuration requirement (reduces the exposed population), and the need for victim interaction with the file. Deployments not running NC_SECURE_ATTACHMENTS=true are not vulnerable via this code path, as the vulnerable signed-URL header-override mechanism is only exercised in that mode.

Impact

Real-world risk is moderate-to-high for deployments that meet the exploitation prerequisites but lower for the broader NocoDB install base. The attack requires two conditions to align: the attacker must hold authenticated upload permission, and the deployment must have NC_SECURE_ATTACHMENTS=true set - a non-default configuration indicating operators who explicitly enabled secure-attachment mode are the primary target population, which is somewhat ironic given the feature's security intent. The impact when conditions are met is severe: JWT theft enables complete account takeover without further interaction from the attacker. No CVSS vector was supplied by NVD or the GitHub advisory, so all scoring is independently assessed. No EPSS score is available. The vulnerability is not listed in CISA KEV and no public exploit code has been confirmed, suggesting opportunistic mass exploitation is not currently occurring. However, the public GitHub Security Advisory and detailed technical description lower the bar for independent exploit development. The fix described in the advisory (correcting key casing and unconditionally forcing Content-Disposition: attachment for non-allowlisted MIME types) is straightforward to reproduce in reverse, meaning a motivated attacker reading the advisory could craft a working exploit quickly. The combination of a clear technical write-up, a viable impact (JWT theft), and no confirmed patch warrants prioritized remediation for affected deployments.

Exploit ScenarioDerived

An attacker with a NocoDB collaborator account that includes file upload permissions crafts an .svg file containing an embedded <script> tag that sends document.cookie and localStorage.getItem('nocodb-token') to an attacker-controlled endpoint. The attacker uploads this file to a shared base in a NocoDB instance running with NC_SECURE_ATTACHMENTS=true. When a victim (such as an admin or another collaborator) opens the attachment link, the Express server fails to apply Content-Disposition: attachment due to the header-key case mismatch, the browser renders the SVG inline in the NocoDB origin, and the embedded script executes, exfiltrating the victim's auth JWT to the attacker.

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

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

Alert me

AnalysisAIv1 – Jun 18, 2026

Stored Cross-Site Scripting in NocoDB (npm package, versions <= 0.301.3) allows an authenticated user with upload permissions to deliver malicious .html or .svg attachments that the victim's browser renders inline from the NocoDB origin, bypassing the intended forced-download behavior. The root cause is a header-key case mismatch in the secure attachment handler: the signed URL generator wrote overrides as PascalCase keys while the Express controller read them as lowercase-hyphen keys, silently dropping Content-Disposition: attachment and enabling inline rendering. When exploited, script executing in the victim's browser can exfiltrate the auth JWT stored in localStorage, leading to full session compromise. No public exploit code has been identified at time of analysis, and no patched version has been confirmed released.

RemediationAI

No vendor-released patch has been confirmed at time of analysis - the GHSA advisory at https://github.com/nocodb/nocodb/security/advisories/GHSA-6mhr-74x2-98v9 and https://github.com/advisories/GHSA-6mhr-74x2-98v9 describe the fix but do not list a remediated release version. Operators should monitor the NocoDB GitHub releases page and the advisory for a patched build and upgrade immediately upon availability. As a compensating control, disable NC_SECURE_ATTACHMENTS mode and configure object-storage bucket policies (e.g., AWS S3 ContentDisposition enforcement, Cloudflare R2 transform rules) to force Content-Disposition: attachment at the storage layer for all user-uploaded files - this eliminates the Express-level bypass entirely, though it requires infrastructure-level changes and may affect legitimate preview use cases. Alternatively, restrict upload permissions to the minimum set of trusted users, reducing the attacker population, but note this does not eliminate the vulnerability for those users. Block direct browser access to the NocoDB attachment endpoint via a reverse proxy that injects Content-Disposition: attachment; filename=... and X-Content-Type-Options: nosniff response headers for all served attachment paths as an additional layer, accepting that this applies broadly and may break PDF/image previews.

Affected VersionsENISA

nocodb < 2026.05.1

Affected Packages

npm nocodb fix: 2026.05.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 is an open-source Airtable alternative built on Node.js/Express (pkg:npm/nocodb). The vulnerability resides in the signed attachment delivery subsystem, which is activated by the NC_SECURE_ATTACHMENTS=true environment variable. When this mode is enabled, the server generates signed URLs that include response-header overrides intended to force browsers to download files rather than render them. The Express-based file-serving controller, however, consumed these override keys using lowercase-hyphen naming conventions (e.g., response-content-disposition) while the signing handler had written them under PascalCase keys (e.g., ResponseContentDisposition). JavaScript object property lookups are case-sensitive, so the lookup silently returned undefined, causing the Content-Disposition: attachment and Content-Type safeguards to be omitted from HTTP responses. Express then defaulted to content-type inference, allowing .html and .svg files to be served with text/html and image/svg+xml MIME types and rendered inline by the browser in the NocoDB origin context. The CWE-79 (Improper Neutralization of Input During Web Page Generation) root cause class applies because user-supplied content was ultimately rendered in the browser without sufficient output encoding or delivery restriction.

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:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
vuln.today AI 7.6 HIGH

Network vector with low-privilege upload account required (PR:L), victim must open the link (UI:R), scope changes to victim browser (S:C), JWT theft enables full session takeover (C:H).

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/nocodb/nocodb).

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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Jun 23, 2026 - 23:02 EUVD
CVSS changed
Jun 23, 2026 - 21:22 NVD
5.1 (MEDIUM)

DescriptionCVE.org

Summary

With NC_SECURE_ATTACHMENTS=true, an authenticated uploader could deliver .html or .svg attachments that the browser rendered inline from the NocoDB origin instead of forcing a download.

Details

The signed attachment handler stored response-header overrides under PascalCase keys (ResponseContentDisposition, ResponseContentType) while the controller that served the file read them under lowercase-hyphen names (response-content-disposition). The mismatch dropped the Content-Disposition: attachment header, leaving Express to auto-render .html, .svg, and similar inline. The fix corrects the key case and additionally forces Content-Disposition: attachment and Content-Type: application/octet-stream for any MIME type not on the preview allowlist.

Impact

Stored Cross-Site Scripting in the NocoDB origin from inline-rendered uploads. Script executing in the victim's browser can read the auth JWT from localStorage. Exploitation requires authenticated upload permission and the secure-attachment mode to be enabled.

Credit

This issue was reported by @bugbunny-research. It was independently reported by @DavidCarliez.

Threat Intelligence Overview

EPSS Score
0.3%
Top 80% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

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.3%
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