CVE-2026-41213CWE-1289CWE-307

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

Medium · published April 23, 2026

CVSS v3.1
5.9
EPSS
0%
Percentile
27.1
In the wild
Unconfirmed
What it is

@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.

The record
Technical detail
CVSS v3.1
5.9 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.00347 · 27.1th percentile
Weaknesses
CWE-1289 · Improper Validation of Unsafe Equivalence in Input; CWE-307 · Improper Restriction of Excessive Authentication Attempts
Published
2026-04-23T18:33Z
EPSS history
Timeline
  • 23 APR 18:33Z
    @node-oauth/oauth2-server: PKCE code_verifier ABNF not enforced in token exchange allows brute-force redemption of intercepted authorization codes
    cvelistv5