CVE-2026-41213

MEDIUM

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

Title source: cna
STIX 2.1

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.

References (1)

Core 1

Scores

CVSS v3 5.9
EPSS 0.0026
EPSS Percentile 17.0%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

CISA SSVC

Vulnrichment
Exploitation poc
Automatable no
Technical Impact partial

Details

CWE
CWE-1289 CWE-307
Status published
Products (3)
node-oauth/node-oauth2-server < 5.3.0
node-oauth/node-oauth\/oauth2-server < 5.3.0
node-oauth/oauth2-server 0 - 5.3.0npm
Published Apr 23, 2026
Tracked Since Apr 24, 2026