{"items":[{"id":"NVI-00016242","kind":"vulnerability","title":"NocoDB: Stored Cross-Site Scripting via Form View Redirect URL","revision":1,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-hj85-ph9q-78jg","CVE-2026-47387"],"plain_summary":"GitHub lists this reviewed advisory for nocodb. Published version ranges and source prerequisites are shown below; this is not an inspection of a visitor’s application.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"Identify the exact component and deployed version, examine the linked publisher’s conditions, and retain evidence of any mitigation.","source_ids":["sr-52b8ecd27b10addfbc673f8132c9b0c6"],"action_type":"investigate","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-52b8ecd27b10addfbc673f8132c9b0c6","url":"https://github.com/advisories/GHSA-hj85-ph9q-78jg","basis":"vendor_advisory","notes":"GitHub Advisory Database; CC-BY-4.0. Each advisory links its original attribution. Null normalizes fields.","title":"GHSA-hj85-ph9q-78jg","publisher":"GitHub Advisory Database","observed_at":"2026-11-04T02:47:44.783Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-52b8ecd27b10addfbc673f8132c9b0c6"],"technology":"nocodb","known_exclusions":[],"conditions_summary":"### Summary\n\nThe shared form-view submit handler in NocoDB writes the form's `redirect_url` to `window.location.href` after a same-host check that does not validate the URL scheme. A user with `editor` role (or above) on any base can plant a `javascript:` URL in the form's `redirect_url`; when an authenticated viewer opens the share-link and submits the form, the payload executes in the NocoDB origin and can read the session token from `localStorage[\"nocodb-gui-v2\"]`.\n\n### Details\n\nThe vulnerable sink is in `packages/nc-gui/composables/useSharedFormViewStore.ts`:\n\n- `isValidRedirectUrl` validated only `typeof === 'string'` and non-empty trim — no scheme check.\n- The submit branch built an anchor element, compared `anchor.host` to `window.location.host`, and either pushState-reloaded (same host) or assigned `window.location.href = redirectUrl` (otherwise).\n- For non-network schemes such as `javascript:`, `data:`, `vbscript:`, and `file:`, `anchor.host` is the empty string, so the same-host check is false and the code falls into the external-redirect branch — executing the URL same-origin in the NocoDB tab.\n\nThe `redirect_url` field is writable by any user with `editor` role on the b","public_affected_ranges":["<= 2026.05.0"]}],"null_published_at":"2026-11-04T10:04:27.922Z","source_updated_at":"2026-07-20T21:19:09.000Z","source_disclosed_at":"2026-06-05T16:20:44.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"First indexed by Null; source disclosure date is shown separately.","null_first_observed_at":"2026-11-04T02:47:44.783Z"}],"next_cursor":null,"snapshot_revision":"42594"}