{"id":"GHSA-9qgr-6vpg-9gh9","revision":"30b23ce47472432f9559c507ba76476b","records":[{"revision":"30b23ce47472432f9559c507ba76476b","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-9qgr-6vpg-9gh9","aliases":["CVE-2026-46547"],"title":"NocoDB: Reflected Cross-Site Scripting via Page Leaving Redirect URL","description":"### Summary\nA reflected XSS vulnerability exists in the Page Leaving Warning page. The `ncRedirectUrl` and `ncBackUrl` query parameters are used in `window.location.href` and `<a>` tag bindings without validation, allowing `javascript:` URI injection.\n\n### Details\n`PageLeavingWarning.vue` reads `ncRedirectUrl` and `ncBackUrl` directly from the route query without validation. When `isSameOriginUrl()` returns `false` (as it does for `javascript:` URIs), the raw URL is assigned to `window.location.href`, executing arbitrary JavaScript. The redirect URL is also bound directly to an `<a>` tag's `href` attribute.\n\n### Impact\nAn attacker can execute arbitrary JavaScript in the context of the NocoDB application by sending a crafted link to a victim. No authentication is required.\n\n### Credit\nThis issue was reported by [@naoyashiga](https://github.com/naoyashiga).","state":0,"publishedAt":"2026-05-21T20:34:09+00:00","modifiedAt":"2026-07-20T21:30:36.2903046+00:00","affected":[{"ecosystem":"npm","name":"nocodb","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"last_affected","version":"0.301.3"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/nocodb/nocodb/security/advisories/GHSA-9qgr-6vpg-9gh9","https://nvd.nist.gov/vuln/detail/CVE-2026-46547","https://github.com/nocodb/nocodb"],"sourceUrl":"https://github.com/advisories/GHSA-9qgr-6vpg-9gh9","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-9qgr-6vpg-9gh9","identifiers":["GHSA-9qgr-6vpg-9gh9","CVE-2026-46547"]},"retained":false,"historicalAffected":[]}],"coverage":[]}