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.
Published: 2026-06-23
Score: 8.4 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

NocoDB’s shared form‑view submit handler writes the form’s redirect_url directly to window.location.href after a same‑host check that ignores URL scheme validation. An editor or higher user can supply a javascript: URL. When an authenticated viewer opens the shared form link and submits the form, the malicious JavaScript executes in the context of the NocoDB origin, allowing the payload to read the session token from localStorage["nocodb-gui-v2"]. This stored cross‑site scripting flaw enables attackers to run arbitrary code within the application, steal session credentials, and potentially perform actions as the victim user.

Affected Systems

Any self‑hosted NocoDB installation running a version prior to 2026.05.1 is vulnerable. The flaw resides in the shared form‑view submit handler located in packages/nc‑gui/composables/useSharedFormViewStore.ts. Users with editor role (or higher) can inject a javascript: URL into the form’s redirect_url. When an authenticated viewer opens the share link and submits the form, the payload executes. Older versions are especially susceptible.

Risk and Exploitability

The CVSS score of 8.4 classifies this flaw as high severity. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog, but its high severity rating underscores the risk. Based on the description, it is inferred that the vulnerability is exploitable by an editor who sets a malicious redirect_url and a viewer who opens the shared form link, resulting in the execution of attacker‑supplied code in the NocoDB origin. Successful exploitation gives the attacker the same privileges as the victim’s session, enabling data exfiltration or further compromise of the NocoDB environment.

Generated by OpenCVE AI on June 24, 2026 at 10:04 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update NocoDB to version 2026.05.1 or later where redirect_url handling is fixed.
  • Revoke or downgrade editor‑level permissions on existing bases to prevent malicious redirect_url insertion.
  • Implement a policy or input filter that allows only http/https schemes in form redirect URLs, rejecting javascript: URLs at the application layer.

Generated by OpenCVE AI on June 24, 2026 at 10:04 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-hj85-ph9q-78jg NocoDB: Stored Cross-Site Scripting via Form View Redirect URL
History

Wed, 24 Jun 2026 00:00:00 +0000

Type Values Removed Values Added
First Time appeared Nocodb
Nocodb nocodb
Vendors & Products Nocodb
Nocodb nocodb

Tue, 23 Jun 2026 20:30:00 +0000

Type Values Removed Values Added
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.
Title NocoDB: Stored Cross-Site Scripting via Form View Redirect URL
Weaknesses CWE-79
References
Metrics cvssV4_0

{'score': 8.4, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-06-23T20:11:02.071Z

Reserved: 2026-05-19T19:22:45.728Z

Link: CVE-2026-47387

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-24T10:15:05Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')