Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessControl or compromise OAuth client application
-
DeliveryIntercept authorization code and PKCE verifier during victim's OAuth flow
-
ExploitDispatch concurrent token-exchange requests to NocoDB endpoint
-
ExecutionRace condition bypasses single-use is_used check
-
PersistAttacker receives independently valid refresh token
-
ImpactMaintain 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 |
| 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
Lifecycle Timeline
1DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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).
EUVD-2026-38614
GHSA-8m7c-hf24-5g47
NVD
CVE.org
EPSS
Exploit-DB