NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · Claude Code

CVE-2026-24052: Claude Code has a Domain Validation Bypass which Allows Automatic Requests to Attacker-Controlled Domains

highCVSS 4.0 7.1GHSA-vhw5-3g5m-8ggf

Claude Code before 1.0.111 checked WebFetch URLs against its trusted-domain list with a prefix match. A lookalike host such as modelcontextprotocol.io.example.com passed as trusted, so the agent could fetch from an attacker's server without asking the user, which can leak data. Fixed in 1.0.111; auto-update users already have it.

Published Feb 3, 2026 · Analysis Nov 1, 2026

What an attacker can do

WebFetch skips the permission prompt for a short list of trusted documentation hosts, for example docs.python.org and modelcontextprotocol.io. The check used startsWith() on the URL's host. That accepts any host that begins with a trusted name, so an attacker who registers modelcontextprotocol.io.example.com, or a similar name, gets the same automatic approval.

The attacker needs the agent to request such a URL. In practice that means prompt injection: instructions in a repository file, web page, issue or tool result that tell the agent to fetch the lookalike address with data in the path or query string. The request goes out with no consent prompt, and the data lands in the attacker's server logs. The CVSS 4.0 vector has no privileges required and passive user interaction, with high confidentiality impact only.

What can leak is whatever the agent can see in its context: source code, file contents, environment values and secrets it has read in the session.

Who is affected

@anthropic-ai/claude-code versions earlier than 1.0.111. Check the version you run:

claude --version

or, for an npm install:

npm ls -g @anthropic-ai/claude-code

The advisory says users on standard auto-update have already received the fix. Pinned installs, containers and CI images with old versions are the ones to check.

@anthropic-ai/claude-code

Ecosystem
npm
Affected
< 1.0.111
Fixed in
1.0.111
Check
npm ls @anthropic-ai/claude-code

How to fix it

Upgrade to Claude Code 1.0.111 or later.

npm install -g @anthropic-ai/claude-code@latest

The advisory gives no workaround. Until you upgrade, avoid running the agent on untrusted repositories or web content, and review WebFetch requests rather than relying on automatic approval.

How to tell if you were hit

Look in session transcripts and network logs for WebFetch requests to hosts that begin with a trusted name but continue past it, such as modelcontextprotocol.io.something-else.tld or docs.python.org.example.net, particularly with long query strings or encoded data. Check DNS and proxy logs from developer machines for the same pattern. Beam records agent shell commands, file access and MCP tool calls, and its rules can flag suspicious outbound requests made by an agent.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Claude Code contained insufficient URL validation in its trusted domain verification mechanism for WebFetch requests. The application used a startsWith() function to validate trusted domains (e.g., docs.python.org, modelcontextprotocol.io), this could have enabled attackers to register domains like modelcontextprotocol.io.example.com that would pass validation. This could enable automatic requests to attacker-controlled domains without user consent, potentially leading to data exfiltration.

Users on standard Claude Code auto-update have received this fix already. Users performing manual updates are advised to update to the latest version.

Thank you to hackerone.com/47sid-praetorian for reporting this issue!

Questions

Is Claude Code 1.0.111 or later affected by CVE-2026-24052?

No. 1.0.111 is the patched version. Anything earlier is affected.

Do I need to do anything if Claude Code auto-updates?

The advisory says standard auto-update users have already received the fix. Confirm with claude --version, and check any pinned or containerized installs.

How would an attacker trigger the request?

By getting the agent to fetch a lookalike URL, for example through injected instructions in content it reads. The advisory says the request happens automatically, without user consent.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More Claude Code vulnerabilities

All Claude Code entries