{"id":"GHSA-rvp5-9p55-f5rp","revision":"6407d860b9b44de6bf3ef23144880024","records":[{"revision":"6407d860b9b44de6bf3ef23144880024","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-rvp5-9p55-f5rp","aliases":["CVE-2026-47377"],"title":"NocoDB: Open Redirect via Hash Fragment in hashRedirect Plugin","description":"### Summary\n\nThe client-side `hashRedirect` plugin called `window.location.replace()` on a path extracted from the URL hash fragment after only checking `hashPath.startsWith('/')`. Protocol-relative URLs (`//attacker.com/…`) also satisfy that check, so a crafted link such as `https://nocodb.example/#//attacker.com/phishing` silently redirected visitors to an attacker-controlled origin.\n\n### Details\n\nIn `packages/nc-gui/plugins/hashRedirect.client.ts`, the plugin extracted the hash content and normalised it into `cleanUrl`:\n\n```ts\nlet cleanUrl = hashPath.startsWith('/') ? hashPath : `/${hashPath}`\nif (hashQuery) cleanUrl += `?${hashQuery}`\nwindow.location.replace(cleanUrl)\n```\n\n`startsWith('/')` returns true for `//attacker.com/...`, which browsers interpret as a protocol-relative absolute URL. No hostname check was performed before the redirect. The fix adds an early `if (/^\\/[/\\\\]/.test(hashPath)) return` to reject protocol-relative paths.\n\n### Impact\n\n- Open redirect from any NocoDB origin to an attacker-controlled domain.\n- No authentication required; the attack lands the victim on an attacker-controlled page that may impersonate a NocoDB login.\n\n### Credit\n\nThis issue was reported by [@fg0x0](https://github.com/fg0x0).","state":0,"publishedAt":"2026-06-05T16:00:15+00:00","modifiedAt":"2026-07-20T21:30:42.8684265+00:00","affected":[{"ecosystem":"npm","name":"nocodb","ranges":[{"type":"ECOSYSTEM","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"2026.04.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/nocodb/nocodb/security/advisories/GHSA-rvp5-9p55-f5rp","https://nvd.nist.gov/vuln/detail/CVE-2026-47377","https://github.com/nocodb/nocodb","https://github.com/nocodb/nocodb/releases/tag/2026.04.1"],"sourceUrl":"https://github.com/advisories/GHSA-rvp5-9p55-f5rp","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-rvp5-9p55-f5rp","identifiers":["GHSA-rvp5-9p55-f5rp","CVE-2026-47377"]},"retained":false,"historicalAffected":[]}],"coverage":[]}