Skip to content
OpenAdvisories
Medium · 5.9 CVE-2026-41213 EUVD-2026-25272GHSA-jhm7-29pj-4xvf

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

Published Apr 23, 2026 · Updated Apr 25, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
node-oauth node-oauth2-server < 5.3.0 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm @node-oauth/oauth2-server < 5.3.0 5.3.0 GHSA-jhm7-29pj-4xvf

References