Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessUser initiates OAuth authentication
-
DeliveryAttacker sends crafted request with error parameter
-
ExploitState validation bypassed
-
Executioncleanup() called
-
PersistCallback server shuts down
-
ImpactOAuth session terminated
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V3 - Web Frontend Security Anti-CSRF tokens, SameSite cookies
MITRE ATT&CK
1 technique across 1 tactic: Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The attacker can trigger this vulnerability only when a user is actively running OpenClaude MCP and has initiated an OAuth authentication flow, which starts the temporary local HTTP server. The callback server must be listening on localhost (default 127.0.0.1:12345) and must not have completed the authentication exchange; the window of vulnerability is the few seconds between when the server starts and when the OAuth provider redirects the user back with a callback. The vulnerability is triggered via a crafted HTTP request containing an |
| Impact | CVSS 6.5 (AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H) indicates network-accessible, unauthenticated denial of service requiring user interaction (the user must be in the middle of an OAuth flow when the malicious request is sent). The attack vector is network and attack complexity is low, making this straightforward to exploit once triggered. However, real-world impact is constrained by two factors: (1) the attack requires timing - the local callback server must be actively listening, which occurs only during an active OAuth authentication attempt by the user, and (2) the attacker cannot read sensitive data (confidentiality is not affected). The lack of EPSS score, POC confirmation, or CISA KEV status in provided data suggests this is a new disclosure or low-volume exploitation. The availability impact (server shutdown) is high, but affects only the user's own session, not a multi-user deployment. SSVC assessment: exploitation is straightforward (attack complexity is low, network vector, no authentication required); technical impact is high (service becomes unavailable); however, the scoped impact is limited to the individual user's authentication session. This is primarily a user-centric DoS rather than a service-wide outage. Defenders should prioritize based on whether OpenClaude MCP is actively used in their environment and whether users frequently perform OAuth authentication. |
| Exploit ScenarioDerived | An attacker hosts a malicious webpage containing a cross-origin image tag or fetch request to |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 12, 2026
OpenClaude MCP's OAuth callback handler in Node.js can be shut down via CSRF attack by sending a request with any error query parameter, bypassing state validation entirely without knowledge of the CSRF token. The vulnerability allows unauthenticated remote attackers to terminate a user's active authentication session and force server shutdown due to a logic flaw where the error parameter check precedes and disables the state validation check. Vendor-released patch version 0.5.1 available.
RemediationAI
Vendor-released patch: upgrade to @gitlawb/openclaude v0.5.1 or later via npm install @gitlawb/openclaude@latest or npm update @gitlawb/openclaude. The fix refactors the OAuth callback validation logic into a separate validateOAuthCallbackParams() function that unconditionally validates the state parameter first (before any error or code checks), ensuring that all requests - regardless of the presence of an error parameter - must pass CSRF state validation before proceeding. The patched code removes the problematic !error condition from the state check, decoupling it from error handling. Until patching is possible, no effective workaround exists because the vulnerability is in the core authentication handler; however, users can mitigate exposure by minimizing the duration of active OAuth authentication sessions and avoiding clicking untrusted links while in the midst of an authentication flow. The GitHub advisory at https://github.com/Gitlawb/openclaude/security/advisories/GHSA-c73c-x77g-854r provides additional context and confirmation of the fix.
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
OpenClaude MCP implements a temporary local HTTP server (listening on 127.0.0.1:12345 or similar) to handle OAuth 2.0 callback authentication flows. The server validates an opaque state parameter to prevent Cross-Site Request Forgery (CSRF) attacks per RFC 6749. The vulnerability exists in the conditional logic of the callback handler: the first if statement checks !error && state !== oauthState, meaning the state validation is only executed when the error parameter is absent. If an error parameter is present (even with any arbitrary value), the negation !error evaluates false, the entire condition short-circuits, and execution falls through to the second if (error) block, which calls cleanup() to shut down the server without ever validating the state. This is a classic conditional logic error (CWE-352: Cross-Site Request Forgery) where security-critical validation is inadvertently disabled by improper ordering and conditional dependencies.
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:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Primary rating from Vendor (https://github.com/Gitlawb/openclaude) · only source for this CVE.
CVSS VectorVendor: https://github.com/Gitlawb/openclaude
DescriptionCVE.org
OAuth State Validation Bypass via error Parameter Causes Local Server DoS in MCP Auth Callback
---
Description
The OpenClaude MCP authentication flow starts a temporary local HTTP server to handle OAuth callbacks. To prevent CSRF attacks, the server validates a state parameter against an internally stored value. However, due to a logic flaw in the order of conditionals, an attacker can completely bypass this check and force the server to shut down - without knowing the state value at all.
The vulnerable code looks like this:
if (!error && state !== oauthState) {
rejectOnce(new Error('OAuth state mismatch - possible CSRF attack'))
return
}
if (error) {
cleanup()
rejectOnce(new Error(errorMessage))
return
}When a request arrives with an error query parameter (e.g., ?error=anything), the first condition becomes false because !error evaluates to false. This means the CSRF check is never reached. Execution falls through to the second block, where cleanup() is called - shutting down the local server and terminating the user's active authentication session.
The attacker does not need to know the state value. Any request containing an error parameter is enough to trigger the shutdown.
---
Impact
- The user's OAuth flow is silently terminated mid-session
- The local callback server is shut down (Denial of Service)
- Can be triggered remotely via a malicious web page using a cross-origin request (CSRF)
- No authentication or prior knowledge of the
statevalue is required
---
Steps to Reproduce
Save the following as poc.js and run with Node.js:
import { createServer } from 'http';
import { parse } from 'url';
const expectedState = "secure_state_abc123";
const server = createServer((req, res) => {
const parsedUrl = parse(req.url || '', true);
const { pathname, query } = parsedUrl;
const { state, error } = query;
if (pathname === '/callback') {
// Vulnerable: error param causes state check to be skipped entirely
if (!error && state !== expectedState) {
res.writeHead(400);
res.end('State mismatch');
console.log('[-] CSRF attempt blocked.');
return;
}
if (error) {
res.writeHead(200);
res.end(`Error: ${error}`);
console.log(`[!] Server shutting down. Triggered by: ${error}`);
server.close();
return;
}
}
});
server.listen(12345, '127.0.0.1', () => {
console.log('Listening on http://127.0.0.1:12345');
});Terminal 1 - start the server:
node poc.jsTerminal 2 - trigger the bypass:
curl "http://127.0.0.1:12345/callback?error=triggered"Expected result: Server shuts down immediately. The state value was never checked.
---
Root Cause
The CSRF protection is conditioned on !error, meaning it is silently disabled whenever an error parameter is present. The two checks need to be decoupled - state validation must happen first, independently of any other parameters.
---
Fix
Move the state check before the error check, and remove the dependency on !error:
// Fixed
if (state !== oauthState) {
cleanup()
rejectOnce(new Error('OAuth state mismatch - possible CSRF attack'))
return
}
if (error) {
cleanup()
rejectOnce(new Error(errorMessage))
return
}With this change, any request - whether it contains an error parameter or not - must first pass the state validation before any further processing occurs.
---
Credit: Xanlar Agamalizade
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
Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
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-33973
GHSA-c73c-x77g-854r
NVD
CVE.org
EPSS
Exploit-DB