CVE-2026-41213
@node-oauth/oauth2-server: PKCE code_verifier ABNF not enforced in token exchange allows brute-force redemption of intercepted authorization codes
In short
A Node.js OAuth2 server library fails to properly validate PKCE code_verifier values during token exchange, allowing attackers to brute-force intercepted authorization codes instead of rejecting invalid verifiers immediately.
Technical detail
The library accepts RFC7636-invalid code_verifier values (including single characters) in S256 PKCE flows without proper ABNF enforcement. An attacker who intercepts an authorization code can perform online brute-force attacks since failed verification attempts do not consume the code, enabling token issuance without the legitimate code_challenge.
Summary generated and translated by AI from the official description.
@node-oauth/oauth2-server is a module for implementing an OAuth2 server in Node.js. The token exchange path accepts RFC7636-invalid code_verifier values (including one-character strings) for S256 PKCE flows. Because short/weak verifiers are accepted and failed verifier attempts do not consume the authorization code, an attacker who intercepts an authorization code can brute-force code_verifier guesses online until token issuance succeeds.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Affected products
node-oauth · node-oauth2-serverWant to know if your infrastructure is exposed to this?
Talk to TrueHacking →