Skip to main content
← All vulnerabilities
CVE-2026-41213GHSA-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
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.3.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • node-oauth node-oauth2-server

    fixed in 5.3.0

  • @node-oauth/oauth2-servernpm

    fixed in 5.3.0

References 1

GitHub · node-oauth/node-oauth2-server