CVE-2026-41213: CWE-307: Improper Restriction of Excessive Authentication Attempts in node-oauth node-oauth2-server
@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.
AI Analysis
Technical Summary
The node-oauth2-server module improperly restricts excessive authentication attempts in its implementation of the PKCE S256 flow. Specifically, it accepts RFC7636-invalid code_verifier values, including very short strings, and does not consume the authorization code on failed verification attempts. This allows an attacker who has intercepted an authorization code to perform an online brute-force attack against the code_verifier until a valid token is issued. The vulnerability is tracked as CVE-2026-41213 and affects versions before 5.3.0. The CVSS 3.1 base score is 5.9, reflecting a medium severity with network attack vector, high attack complexity, no privileges required, no user interaction, unchanged scope, and high confidentiality impact.
Potential Impact
An attacker who intercepts an OAuth2 authorization code can repeatedly attempt to guess the code_verifier value due to the lack of proper restrictions on authentication attempts and acceptance of invalid code_verifiers. This can lead to unauthorized issuance of access tokens, compromising the confidentiality of protected resources. The vulnerability does not impact integrity or availability directly. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should consider implementing additional rate limiting or monitoring on the token exchange endpoint to detect and block brute-force attempts. Avoid using affected versions of node-oauth2-server in sensitive environments if possible.
CVE-2026-41213: CWE-307: Improper Restriction of Excessive Authentication Attempts in node-oauth node-oauth2-server
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.
CVSS v3.1
Score 5.9medium
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The node-oauth2-server module improperly restricts excessive authentication attempts in its implementation of the PKCE S256 flow. Specifically, it accepts RFC7636-invalid code_verifier values, including very short strings, and does not consume the authorization code on failed verification attempts. This allows an attacker who has intercepted an authorization code to perform an online brute-force attack against the code_verifier until a valid token is issued. The vulnerability is tracked as CVE-2026-41213 and affects versions before 5.3.0. The CVSS 3.1 base score is 5.9, reflecting a medium severity with network attack vector, high attack complexity, no privileges required, no user interaction, unchanged scope, and high confidentiality impact.
Potential Impact
An attacker who intercepts an OAuth2 authorization code can repeatedly attempt to guess the code_verifier value due to the lack of proper restrictions on authentication attempts and acceptance of invalid code_verifiers. This can lead to unauthorized issuance of access tokens, compromising the confidentiality of protected resources. The vulnerability does not impact integrity or availability directly. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should consider implementing additional rate limiting or monitoring on the token exchange endpoint to detect and block brute-force attempts. Avoid using affected versions of node-oauth2-server in sensitive environments if possible.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-18T02:51:52.975Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69ea6a1b87115cfb68455bee
Added to database: 4/23/2026, 6:51:07 PM
Last enriched: 5/1/2026, 8:40:08 PM
Last updated: 6/7/2026, 5:21:13 AM
Views: 116
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.