{"id":"GHSA-9qgr-6vpg-9gh9","summary":"NocoDB: Reflected Cross-Site Scripting via Page Leaving Redirect URL","details":"### 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 `\u003ca\u003e` 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 `\u003ca\u003e` 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).","aliases":["CVE-2026-46547"],"modified":"2026-07-20T21:30:36.290304606Z","published":"2026-05-21T20:34:09Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2026-05-21T20:34:09Z","nvd_published_at":"2026-06-23T21:16:57Z","cwe_ids":["CWE-79"],"severity":"MODERATE"},"references":[{"type":"WEB","url":"https://github.com/nocodb/nocodb/security/advisories/GHSA-9qgr-6vpg-9gh9"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-46547"},{"type":"PACKAGE","url":"https://github.com/nocodb/nocodb"}],"affected":[{"package":{"name":"nocodb","ecosystem":"npm","purl":"pkg:npm/nocodb"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"0.301.3"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-9qgr-6vpg-9gh9/GHSA-9qgr-6vpg-9gh9.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}