CVE-2026-41213 @node-oauth/oauth2-server: PKCE code_verifier ABNF not enforced in token exchange allows brute-force redemption of intercepted authorization codes
MediumCVSS 5.9
EPSS 0.36%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
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.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| node-oauth @node-oauth/oauth2-server(npm) | < 5.3.0; <= 5.2.1 | 5.3.0 | Fixed |
| node-oauthoauth2-server | < 5.3.0 | 5.3.0 | Fixed |
| node-oauth2-server | = < 5.3.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| node-oauth2-server | = < 5.3.0 | No fix listed |
| node-oauth @node-oauth/oauth2-server(npm) | <= 5.2.1 | No fix listed |
| node-oauthoauth2-server | < 5.3.0 | 5.3.0 |
| node-oauth @node-oauth/oauth2-server(npm) | < 5.3.0 | 5.3.0 |
References
- https://github.com/node-oauth/node-oauth2-server/security/advisories/GHSA-jhm7-29pj-4xvf exploit mitigation vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product