| 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. |
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.
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.
startsWith() domain validation permitted attacker-controlled subdomains or prefix collisions.
Agent workflows may fetch attacker-controlled content or exfiltrate context to untrusted endpoints during MCP-adjacent browsing flows.
Add a minimal vulnerable code snippet here only after reviewing the linked upstream commit / advisory.
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.
Prefer vendor advisories and defensive write-ups; do not host weaponized exploit code in this repository.
Upgrade to Claude Code 1.0.111 or later.