{"id":"CVE-2026-53929","title":"NocoDB: Stored Cross-Site Scripting via Secure Attachment","summary":"NocoDB: Stored Cross-Site Scripting via Secure Attachment","severity":"medium","cwe":["CWE-79"],"vendor":"nocodb","product":"nocodb","ecosystem":"npm","affected":["nocodb <= 0.301.3"],"published":"2026-06-17","updated":"2026-06-17","source":"GHSA","sourceUrl":"https://github.com/advisories/GHSA-6mhr-74x2-98v9","references":[{"url":"https://github.com/nocodb/nocodb/security/advisories/GHSA-6mhr-74x2-98v9"},{"url":"https://github.com/advisories/GHSA-6mhr-74x2-98v9"}],"tags":["ghsa","npm"],"epss":0.00396,"epssPercentile":0.31009,"ingestedAt":"2026-06-29T14:31:47.433Z","slug":"CVE-2026-53929","body":"## Overview\n\n### Summary\nWith `NC_SECURE_ATTACHMENTS=true`, an authenticated uploader could deliver `.html` or\n`.svg` attachments that the browser rendered inline from the NocoDB origin instead of\nforcing a download.\n\n### Details\nThe signed attachment handler stored response-header overrides under PascalCase keys\n(`ResponseContentDisposition`, `ResponseContentType`) while the controller that served\nthe file read them under lowercase-hyphen names (`response-content-disposition`). The\nmismatch dropped the `Content-Disposition: attachment` header, leaving Express to\nauto-render `.html`, `.svg`, and similar inline. The fix corrects the key case and\nadditionally forces `Content-Disposition: attachment` and\n`Content-Type: application/octet-stream` for any MIME type not on the preview\nallowlist.\n\n### Impact\nStored Cross-Site Scripting in the NocoDB origin from inline-rendered uploads. Script\nexecuting in the victim's browser can read the auth JWT from `localStorage`.\nExploitation requires authenticated upload permission and the secure-attachment mode\nto be enabled.\n\n### Credit\nThis issue was reported by [@bugbunny-research](https://github.com/bugbunny-research).\nIt was independently reported by [@DavidCarliez](https://github.com/DavidCarliez).\n\n## Affected packages\n\n- `nocodb <= 0.301.3`\n\n## Remediation\n\nRefer to the advisory for the patched release.","depth":"sunlit","depthScore":28,"depthScoreParts":{"impact":27.5,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[]}