CVE-2026-41213: CWE-307: Improper Restriction of Excessive Authentication Attempts in node-oauth node-oauth2-server
CVE-2026-41213 is a medium severity vulnerability in the node-oauth2-server module for Node. js. The issue arises because the token exchange endpoint accepts invalid and weak code_verifier values for S256 PKCE flows, including very short strings. This improper restriction allows an attacker who has intercepted an authorization code to perform brute-force attempts of the code_verifier without consuming the authorization code, potentially enabling token issuance without proper authorization.
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, such as one-character strings, and does not consume the authorization code on failed verifier attempts. This flaw allows an attacker who intercepts an authorization code to repeatedly guess the code_verifier value online until a valid token is issued, bypassing intended security controls on the OAuth2 token exchange process.
Potential Impact
An attacker who intercepts an OAuth2 authorization code can brute-force the code_verifier parameter due to weak validation and lack of consumption of the authorization code on failed attempts. Successful exploitation results in unauthorized token issuance, leading to potential account compromise or unauthorized access. The vulnerability does not affect integrity or availability but has a high confidentiality impact. No known exploits are reported in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official fix or patch is currently available and the vulnerability affects versions prior to 5.3.0, users should monitor the vendor's announcements for updates. In the meantime, consider implementing additional rate limiting or monitoring on token exchange endpoints to detect and prevent brute-force attempts.
CVE-2026-41213: CWE-307: Improper Restriction of Excessive Authentication Attempts in node-oauth node-oauth2-server
Description
CVE-2026-41213 is a medium severity vulnerability in the node-oauth2-server module for Node. js. The issue arises because the token exchange endpoint accepts invalid and weak code_verifier values for S256 PKCE flows, including very short strings. This improper restriction allows an attacker who has intercepted an authorization code to perform brute-force attempts of the code_verifier without consuming the authorization code, potentially enabling token issuance without proper authorization.
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, such as one-character strings, and does not consume the authorization code on failed verifier attempts. This flaw allows an attacker who intercepts an authorization code to repeatedly guess the code_verifier value online until a valid token is issued, bypassing intended security controls on the OAuth2 token exchange process.
Potential Impact
An attacker who intercepts an OAuth2 authorization code can brute-force the code_verifier parameter due to weak validation and lack of consumption of the authorization code on failed attempts. Successful exploitation results in unauthorized token issuance, leading to potential account compromise or unauthorized access. The vulnerability does not affect integrity or availability but has a high confidentiality impact. No known exploits are reported in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official fix or patch is currently available and the vulnerability affects versions prior to 5.3.0, users should monitor the vendor's announcements for updates. In the meantime, consider implementing additional rate limiting or monitoring on token exchange endpoints to detect and prevent brute-force attempts.
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: 4/23/2026, 7:06:27 PM
Last updated: 4/23/2026, 9:04:11 PM
Views: 18
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.