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.
Metrics
CVSS 3.1 5.9/10
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:NWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| node-oauth | node-oauth2-server | < 5.3.0 |
References
- https://github.com/node-oauth/node-oauth2-server/security/advisories/GHSA-jhm7-29pj-4xvfExploit, Mitigation, Vendor Advisory
- https://github.com/node-oauth/node-oauth2-server/security/advisories/GHSA-jhm7-29pj-4xvfExploit, Mitigation, Vendor Advisory
Timeline
- Published
- Apr 23, 2026
- Last modified
- Oct 26, 2026
- NVD status
- Analyzed