/

CVE-2026-130728

Severity:

HIGH RISK

(7.3)

Stored Cross-Site Scripting (CWE-79) in NocoDB OAuth

CVE-2026-130728

Deferred

Vulnerability type

Category:

Stored Cross-Site Scripting

CWE:

CWE-79

Impact:

Session token theft and potential account takeover

Severity:

HIGH RISK

(7.3)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

NocoDB's OAuth flow allows an authenticated user to register a client with a javascript: redirect URI, creating a stored cross-site scripting risk. If a signed-in victim follows the resulting consent link and selects either consent button, script may run in the NocoDB origin, potentially exposing the victim's session token and enabling account takeover.

Affected context

The issue affects NocoDB deployments before 2026.08.0 where authenticated users can register OAuth clients with redirect URIs that use the javascript: scheme. Risk arises when a signed-in user is directed to the OAuth consent flow for a client configured with such a URI and interacts with a consent button.

Exploit preconditions

  • Attack surface: OAuth client registration and the consent flow
  • Required access: An authenticated account able to register an OAuth client
  • Victim condition: The victim is signed in to NocoDB and opens the consent link
  • Trigger point: Selecting either consent button in the OAuth flow
  • Why exploitation is possible: The flow accepts a script-capable redirect URI and allows it to execute in the NocoDB origin

Why this happens

The application does not sufficiently restrict or safely handle OAuth redirect URIs before using them in the consent flow. Allowing a javascript: URI to reach a browser navigation context can cause attacker-controlled script to execute in the application's origin. This is a stored cross-site scripting flaw mapped to CWE-79: Improper Neutralization of Input During Web Page Generation.

Potential impact

  • A victim's session token may be exposed
  • An attacker could use a stolen token to take over the victim's account
  • The attacker may be able to perform actions available to the compromised account

General mitigation guidance

Defensive patterns include:

  • Allow only explicitly supported, safe URI schemes and validate redirect destinations against a strict policy
  • Treat registered OAuth client metadata as untrusted, even when submitted by authenticated users
  • Avoid placing untrusted redirect values into browser navigation or executable contexts
  • Apply context-appropriate output encoding and use safe navigation APIs
  • Limit OAuth client registration privileges and protect session tokens with appropriate security controls

How teams detect issues like this

  • Review redirect URI validation and identify paths where client-supplied values reach browser navigation contexts
  • Use static analysis to flag unsafe URI schemes and untrusted values used in DOM or navigation sinks
  • Test consent flows with disallowed schemes and verify that neither consent action executes supplied script
  • Enforce security policies requiring strict redirect URI allowlists and review OAuth client registrations for unexpected schemes

Sources

SourceLink
github.comgithub.com/nocodb/nocodb/security/advisories/GHSA-2rwf-5cmp-5xwq

Frequently asked

questions

An attacker can prepare a consent link for a victim to open, but the described attack requires the victim to be signed in and interact with the consent flow.

The attacker needs an authenticated account with permission to register an OAuth client. The victim must also be signed in when opening the consent link.

Strictly validate redirect URIs against an allowlist of safe schemes and destinations, and ensure untrusted values cannot execute in browser navigation contexts.

Treat user-controlled OAuth metadata as untrusted, apply context-aware output handling, and test consent flows against unsafe URI schemes as part of security review.

Find out what's already
exploitable in your codebase.