CVE-2026-47386
Published:June 05, 2026
Updated:June 06, 2026
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" (https://github.com/eddieran).
Affected Packages
https://github.com/nocodb/nocodb.git (GITHUB):
Affected version(s) >=crea <2026.05.1Fix Suggestion:
Update to version 2026.05.1nocodb (NPM):
Affected version(s) >=0.0.1 <2026.05.1Fix Suggestion:
Update to version 2026.05.1Related Resources (3)
Do you need more information?
Contact UsCVSS v4
Base Score:
6.3
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
CVSS v3
Base Score:
3.7
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
LOW
Availability
NONE
Weakness Type (CWE)
Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')