CVE-2026-41213mediumCWE-1289CWE-307

CVE-2026-41213: medium-severity vulnerability in node-oauth2-server

@node-oauth/oauth2-server: PKCE code_verifier ABNF not enforced in token exchange allows brute-force redemption of intercepted authorization codes

Published · Updated

E-mail alert when it lands in KEV, gets a public PoC or its score goes up.

13Vexday Risk Score

No sign of exploitation. No public exploitation artifact known so far.

ssvc Trackcvss 5.9epss 0.3%
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