Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIntercept OAuth authorization code
-
DeliverySubmit token request with guessed code_verifier
-
ExploitReceive invalid_grant on mismatch (code not consumed)
-
ExecutionRepeat with next verifier guess
-
PersistMatch weak verifier
-
ImpactReceive bearer access token
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Brute-force prevention, rate limiting
|
| Exploitation Conditions | Exploitation requires two concurrent conditions: (1) the attacker must have already obtained a valid, unexpired authorization code for the target - this requires a prior attack step such as redirect manipulation, referrer header leakage, or network interception of the OAuth callback; and (2) the client application must have generated a code_verifier shorter than 43 characters (non-RFC-compliant), creating a feasible brute-force space. Without condition (2), even with an intercepted code, a 43-128 character high-entropy verifier cannot be brute-forced online. What limits exploitation: the high-complexity prerequisite of code interception, the dependency on client-side RFC non-compliance for weak verifiers, and the online nature of the attack (rate limiting or monitoring on the token endpoint can detect and block repeated invalid_grant responses). This vulnerability does not affect plain (non-PKCE) authorization code flows or flows using code_verifier values of 43+ characters. |
| Impact | The CVSS 3.1 score of 5.9 (AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N) accurately reflects the attack prerequisites: high complexity is warranted because exploitation requires a prior out-of-band interception of the victim's authorization code - a non-trivial step that typically demands a man-in-the-middle position or redirect manipulation. Once the code is obtained, however, the brute-force phase is straightforward, as confirmed by the advisory PoC which succeeded in 26 attempts against a single-character verifier. EPSS at 0.05% (14th percentile) and the SSVC 'Automatable: no' designation both reflect this prerequisite dependency - mass exploitation without code interception is not feasible. The SSVC exploitation status of 'poc' confirms a public working exploit exists. Real-world risk is conditional: deployments are only vulnerable when clients generate verifiers shorter than 43 characters (non-RFC-compliant clients), which is the key amplifying factor. Fully RFC 7636-compliant clients using 43-128 character verifiers are not meaningfully exposed because brute-forcing high-entropy verifiers is computationally infeasible. The CVSS C:H rating is accurate - successful exploitation yields full bearer token access. |
| Exploit ScenarioDerived | An attacker positions themselves to intercept the authorization code issued to a client application - for example, by exploiting an open redirect on the client's redirect_uri or sniffing an insecure callback channel. The attacker then submits repeated POST requests to the /token endpoint with the stolen code and single-character code_verifier guesses (a through z); because each failed guess leaves the authorization code valid, the attacker iterates through the verifier space until the correct value returns HTTP 200 with bearer tokens. The advisory's confirmed PoC shows success in 26 attempts against a one-character verifier. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 24, 2026
PKCE code_verifier validation in @node-oauth/oauth2-server (versions <= 5.2.1) does not enforce RFC 7636 ABNF requirements, accepting arbitrarily short values including single-character strings for S256 flows. An attacker who intercepts an authorization code can brute-force the code_verifier online because failed attempts do not consume the code, allowing repeated guesses until token issuance succeeds. A working proof-of-concept is publicly documented in the GitHub security advisory; no active exploitation confirmed in CISA KEV.
RemediationAI
The primary fix is upgrading @node-oauth/oauth2-server to version 5.3.0, which enforces RFC 7636 ABNF validation (43-128 unreserved characters) on code_verifier before the hash comparison in the authorization code grant flow. The advisory is available at https://github.com/node-oauth/oauth2-server/security/advisories/GHSA-jhm7-29pj-4xvf. If immediate upgrade is not possible, a specific compensating control is to enforce code_verifier length and charset validation at the application or API gateway layer before requests reach the token endpoint - reject any code_verifier shorter than 43 characters or containing characters outside the RFC 7636 unreserved set. A secondary workaround is to configure the authorization server to invalidate authorization codes after any failed token exchange attempt, removing the retry window; this trades usability (legitimate transient failures also consume the code) for security. There is no compensating control that addresses the format-enforcement gap within the library itself prior to patching.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in npm, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The affected library (cpe:2.3:a:node-oauth:node-oauth2-server:*:*:*:*:*:*:*:*) implements OAuth2 authorization flows in Node.js, including PKCE (RFC 7636), which protects authorization code grants against interception attacks. RFC 7636 mandates that code_verifier be a high-entropy string of 43-128 unreserved characters. The root cause (CWE-307: Improper Restriction of Excessive Authentication Attempts) manifests in two distinct defects: first, lib/pkce/pkce.js only checks that the verifier is a non-empty string before hashing for S256, never enforcing the 43-character minimum or charset; second, AuthorizationCodeGrantType.handle revokes the authorization code only after verifier comparison succeeds, meaning invalid guesses fail before revocation and the same code remains valid for unlimited subsequent attempts. The combination of weak server-side format enforcement and non-consuming failed attempts eliminates the entropy guarantee PKCE is designed to provide.
Know when Node.js gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
AC:H reflects mandatory prior auth-code interception; PR:N because the token endpoint is publicly accessible; C:H because success yields bearer tokens; I:N and A:N because no data is modified and no service is disrupted.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
3DescriptionCVE.org
@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.
Blast Radius
ecosystem impact- 1 npm packages depend on @node-oauth/oauth2-server (1 direct, 0 indirect)
Ecosystem-wide dependent count for version 5.3.0.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation
A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could
FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote
Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour
Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t
Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete
Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc
An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi
Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin
A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond
EUVD-2026-25272
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB