Skip to main content

OpenClaude MCP EUVDEUVD-2026-33973

| CVE-2026-42073 MEDIUM
Cross-Site Request Forgery (CSRF) (CWE-352)
2026-05-12 https://github.com/Gitlawb/openclaude GHSA-c73c-x77g-854r
6.5
CVSS 3.1 · Vendor: https://github.com/Gitlawb/openclaude
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    User initiates OAuth authentication
  2. Delivery
    Attacker sends crafted request with error parameter
  3. Exploit
    State validation bypassed
  4. Execution
    cleanup() called
  5. Persist
    Callback server shuts down
  6. Impact
    OAuth 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 error query parameter sent to the callback endpoint. No knowledge of the state value is required. Cross-origin requests from a malicious webpage can trigger the exploitation if the user visits the malicious page during an active OAuth session; same-origin requests (from a trusted application) are typically not a threat vector in this context. The vulnerability does not require authentication, special privileges, or non-default configuration - it affects the default OAuth callback handler behavior. Exploitation is contingent on user interaction (the user must be in the middle of an authentication flow), which satisfies the CVSS UI:R requirement. The server's binding to localhost does not prevent exploitation by cross-origin requests in the browser context, as JavaScript on any webpage can trigger requests to localhost.

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 http://127.0.0.1:12345/callback?error=triggered (or any value). When a user visits this page while simultaneously in the middle of an OpenClaude MCP OAuth authentication (having just initiated login), the browser automatically sends the request to the local callback server. The server receives the request, sees the error parameter, skips state validation, calls cleanup(), and shuts down the local HTTP server. The OAuth session is terminated, and the user must restart the authentication process. A proof-of-concept is embedded in the CVE description and executes in Node.js.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

openclaude < 0.5.1

Affected Packages

npm @gitlawb/openclaude fix: 0.5.1
euvd openclaude fix: 0.5.1

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

Vendor (https://github.com/Gitlawb/openclaude) PRIMARY 6.5 MEDIUM
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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

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:

typescript
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 state value is required

---

Steps to Reproduce

Save the following as poc.js and run with Node.js:

javascript
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:

bash
node poc.js

Terminal 2 - trigger the bypass:

bash
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:

typescript
// 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

EPSS Score
0.0%
Top 94% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

CVE-2025-68613 HIGH POC
8.8 Dec 19

Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation

CVE-2024-41713 CRITICAL POC
9.1 Oct 21

A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could

CVE-2024-55591 CRITICAL POC
9.8 Jan 14

FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote

CVE-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

CVE-2014-7205 CRITICAL POC
10.0 Oct 08

Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t

CVE-2025-59528 CRITICAL POC
10.0 Sep 22

Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete

CVE-2017-14849 HIGH POC
7.5 Sep 28

Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc

CVE-2017-5941 CRITICAL POC
9.8 Feb 09

An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner

CVE-2014-0224 HIGH POC
7.4 Jun 05

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

CVE-2014-3744 HIGH POC
7.5 Oct 23

Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi

CVE-2014-9566 HIGH POC
7.5 Mar 10

Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin

CVE-2024-35286 CRITICAL POC
9.8 Oct 21

A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy