Skip to main content

NocoDB CVE-2026-47386

| EUVDEUVD-2026-38614 MEDIUM
Race Condition (CWE-362)
2026-06-05 https://github.com/nocodb/nocodb GHSA-8m7c-hf24-5g47
6.3
CVSS 4.0 · Vendor: https://github.com/nocodb/nocodb
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Control or compromise OAuth client application
  2. Delivery
    Intercept authorization code and PKCE verifier during victim's OAuth flow
  3. Exploit
    Dispatch concurrent token-exchange requests to NocoDB endpoint
  4. Execution
    Race condition bypasses single-use is_used check
  5. Persist
    Attacker receives independently valid refresh token
  6. Impact
    Maintain persistent unauthorized access to victim account

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V15 - Secure Coding and Architecture Concurrency control, locking
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires two specific, concrete preconditions. First, the attacker must have obtained both the OAuth authorization code AND the PKCE code verifier for a victim's OAuth session - the verifier is a client-side secret generated by the OAuth client and never transmitted to the authorization server during code issuance, so it can only be obtained by controlling or compromising the OAuth client application itself (e.g., a malicious app the user granted access to, or a compromised legitimate client). Second, the attacker must submit concurrent HTTP requests to the NocoDB token exchange endpoint within the narrow timing window between when server-side validation completes and when the is_used flag is committed. This limits exploitation to scenarios where NocoDB is deployed as an OAuth authorization server with registered third-party clients, and where the attacker can generate precise concurrent network traffic. Standard single-client, single-user OAuth flows where no third-party client is malicious or compromised are not exploitable. Authentication requirements cannot be confirmed from CVSS vector data as none was provided.

Impact

No CVSS vector was provided, preventing a quantitative assessment of attack vector, complexity, or privilege requirements. The absence of a CVSS score means attack surface breadth and authentication requirements must be inferred from the advisory description alone. Based on the advisory, two significant prerequisites substantially limit real-world exploitability: the attacker must have obtained both the authorization code AND the PKCE code verifier - not just the authorization code - and must be able to submit concurrent requests within a narrow timing window. The PKCE verifier is a client-side secret never sent to the authorization server during code issuance, meaning the attacker must control or compromise the OAuth client application itself to obtain it. This is a meaningful barrier relative to a typical CVSS network-accessible, low-complexity finding. No EPSS score was available. The vulnerability is absent from the CISA KEV catalog and no public exploit code exists at time of analysis. The primary impact is unauthorized issuance of a long-lived refresh token, enabling persistent account access - a meaningful confidentiality and access-control impact. The 'Microsoft' tag in source metadata has no evident connection to the advisory content and may be erroneous metadata that should not inform risk decisions.

Exploit ScenarioDerived

An attacker operating a malicious OAuth client application that a victim user has authorized receives the authorization code and knows the PKCE verifier (as the client generated it). The attacker immediately dispatches two or more concurrent HTTP POST requests to NocoDB's token exchange endpoint with identical code and verifier values before the server commits the used-code flag. If both requests reach the non-atomic check simultaneously in versions prior to 2026.05.1, both succeed and the attacker retains a valid long-lived refresh token in addition to the one issued to the legitimate client, enabling persistent unauthorized access to the victim's NocoDB session. No public proof-of-concept has been identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 05, 2026

OAuth authorization code exchange in NocoDB versions up to 2026.05.0 is vulnerable to a race condition that breaks the single-use guarantee enforced by PKCE. By submitting two or more concurrent token-exchange requests before the server atomically marks the authorization code as consumed, an attacker who controls a malicious OAuth client can obtain multiple valid (access_token, refresh_token) pairs from a single authorization code, resulting in unauthorized long-lived session access alongside the legitimate token. Fixed in 2026.05.1 via an atomic compare-and-swap database operation; no public exploit has been identified at time of analysis and this vulnerability is not listed in the CISA KEV catalog.

RemediationAI

Upgrade NocoDB to version 2026.05.1 or later; this is the vendor-released patch that replaces the non-atomic markAsUsed pattern with the atomic OAuthAuthorizationCode.claimByCode compare-and-swap fix. The release is available at https://github.com/nocodb/nocodb/releases/tag/2026.05.1 and the advisory at https://github.com/nocodb/nocodb/security/advisories/GHSA-8m7c-hf24-5g47. If an immediate upgrade is not feasible, consider temporarily disabling third-party OAuth client integrations if the NocoDB deployment supports alternative authentication methods (e.g., email/password login), accepting that OAuth-dependent workflows will be unavailable during the interim. Restricting network-level access to the token exchange endpoint to a trusted allowlist of client IP addresses can reduce the attack surface by limiting who can attempt the concurrent-request race, but this does not eliminate the underlying race condition and may be impractical if OAuth clients are distributed or external. There is no evidence that compensating database-level locking can be applied externally without code changes.

Affected VersionsENISA

nocodb < 2026.05.1

Affected Packages

npm nocodb fix: 2026.05.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

This is a CWE-362 (Concurrent Execution Using Shared Resource with Improper Synchronization) race condition in NocoDB's OAuth 2.0 token exchange endpoint. OAuth 2.0 with PKCE requires authorization codes to be strictly single-use - once redeemed, they must be atomically invalidated. The original implementation read the is_used flag and then called markAsUsed as a separate, non-atomic write at the end of the exchange path, creating a classic time-of-check/time-of-use (TOCTOU) window. Two concurrent requests could both read is_used = false, pass all validation (redirect-URI, PKCE verifier, client authentication), and each independently proceed to insert a token pair. The fix introduces a new OAuthAuthorizationCode.claimByCode method that performs an atomic SQL compare-and-swap (UPDATE ... WHERE code = ? AND is_used = false), called immediately before OAuthToken.insert - only the first transaction's UPDATE matches a row, causing all subsequent concurrent attempts to receive invalid_grant: Authorization code has already been used. The affected package is pkg:npm/nocodb as documented in GitHub Advisory GHSA-8m7c-hf24-5g47.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/nocodb/nocodb) PRIMARY 6.3 MEDIUM
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/nocodb/nocodb) · only source for this CVE.

CVSS VectorVendor: https://github.com/nocodb/nocodb

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
Jun 23, 2026 - 21:22 NVD
6.3 (MEDIUM)

DescriptionCVE.org

Summary

Two concurrent token-exchange requests using the same OAuth authorization code could each mint a distinct valid (access_token, refresh_token) pair, breaking the single-use guarantee that PKCE relies on.

Details

The token-exchange flow read is_used and called markAsUsed as an unconditional update at the end of the path. A new OAuthAuthorizationCode.claimByCode method now performs an atomic compare-and-swap (WHERE code = ? AND is_used = false) and is called immediately before OAuthToken.insert, after redirect-URI, PKCE, and client authentication have all succeeded. Only the first concurrent caller's UPDATE wins; the rest see invalid_grant: Authorization code has already been used.

Impact

An attacker who has observed an authorization code and the corresponding PKCE verifier (for example through a malicious OAuth-aware client or by racing a real exchange) could obtain a long-lived refresh token in addition to the legitimate one.

Credit

This issue was reported by @eddieran.

Threat Intelligence Overview

EPSS Score
0.1%
Top 78% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Race conditions occur when multiple concurrent requests exploit the brief time gap between checking a condition and acting upon it (TOCTOU - Time of Check, Time of Use).

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy