CVE-2026-47387 NocoDB: Stored Cross-Site Scripting via Form View Redirect URL

High 8.4 Published Updated

An editor can inject a javascript URL into a form redirect, allowing execution in the victim's browser to steal session tokens.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-47387?

CVE-2026-47387 is a high-severity cross-site scripting vulnerability in nocodb, published on 23 Jun 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

NocoDB is software for building databases as spreadsheets. Prior to 2026.05.1, the shared form-view submit handler (packages/nc-gui/composables/useSharedFormViewStore.ts) 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"]. This vulnerability is fixed in 2026.05.1.

Weakness: CWE-79

Which versions are affected by CVE-2026-47387?

2 open source packages ship an affected version, including nocodb.

PackageAffectedFixed in
nocodb npmAll versions2026.05.1
nocodb npmAll versions2026.05.1

How do I fix CVE-2026-47387?

Upgrade nocodb to 2026.05.1 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2026-47387 being exploited?

There is no known exploitation of CVE-2026-47387 in the wild and no public exploit code.

Sources

Also known as GHSA-hj85-ph9q-78jg.

Is CVE-2026-47387 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free