Executive brief
NocoDB is an open-source platform that turns databases into smart spreadsheets. A security flaw in its login process could allow an attacker who intercepts certain temporary login codes to gain unauthorized, long-term access to a user's account. This occurs because the system fails to properly invalidate a login code if two requests are made at the exact same time.
Technical details
A race condition (CWE-362) exists in the OAuth token-exchange flow of NocoDB. The application originally performed an unconditional update to mark an authorization code as used only at the end of the request path. An attacker who observes an authorization code and PKCE verifier can perform concurrent requests to bypass the single-use guarantee, resulting in the generation of multiple valid access and refresh token pairs. The fix introduces an atomic compare-and-swap operation (claimByCode) to ensure only the first request succeeds. This issue is resolved in version 2026.05.1.
Affected products
- NocoDB NocoDB < 2026.05.1
Timeline
- 2026-06-04: advisory: GitHub Security Advisory published
- 2026-06-23: disclosed: CVE published to NVD