mcp-cve-project

CVE-2026-24052 | Claude Code WebFetch trusted-domain validation bypass | High | 7.1

CVE Information

Field Value
CVE / NVD CVE-2026-24052
Date (index) 2026-02-03
Affected product (index) Claude Code (@anthropic-ai/claude-code): WebFetch trusted-domain startsWith bypass
GHSA ID None — no GitHub advisory published (search)
OWASP MCP Top 10 (2025) MCP06 — Prompt Injection via Contextual Payloads
Published / disclosed 2026-02-03
Ecosystem npm
Component @anthropic-ai/claude-code
EPSS score 0.004000000 (FIRST EPSS, 2026-09-26)
CVSS score 7.1 (v3.1)
CWE CWE-601
Affected versions < 1.0.111
Fixed versions 1.0.111
Fix status Patched
Exploit status Public advisory
Notes Added during 2026-09-07 gap review against NVD/GitHub Advisory MCP searches.

CVE Breakdown

What is the vulnerability?

Claude Code prior to 1.0.111 used insufficient URL validation in trusted domain verification for WebFetch requests, allowing automatic requests to attacker-controlled domains.

Attack prerequisites / exposure

Exposure depends on deployment: network-reachable MCP transports, enabled MCP features, local listeners without authentication, or trusted workspace/project MCP configuration treated as safe input.

CVE is because of what bug?

startsWith() domain validation permitted attacker-controlled subdomains or prefix collisions.

MCP-specific impact / why it matters

Agent workflows may fetch attacker-controlled content or exfiltrate context to untrusted endpoints during MCP-adjacent browsing flows.

Where was the bug? (source + snippet)

Add a minimal vulnerable code snippet here only after reviewing the linked upstream commit / advisory.

Fix / Remediation

Upgrade to the vendor-fixed version where available. Restrict MCP listeners to trusted networks, disable MCP features when not required, and treat project/workspace MCP configuration as untrusted input.

Upstream fix (open source)

Exploit / PoC

Prefer vendor advisories and defensive write-ups; do not host weaponized exploit code in this repository.

Detection / verification

Patch

Upgrade to Claude Code 1.0.111 or later.