GitHub Advisoryadvisory · npm
GHSA-vhw5-3g5m-8ggf Claude Code has a Domain Validation Bypass which Allows Automatic Requests to Attacker-Controlled Domains
HIGH
Official page ↗
- Aliases
- CVE-2026-24052
- Ecosystem
- npm
- Packages
- @anthropic-ai/claude-code
- Severity
- High
- CVSS vector
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
- Weaknesses
- CWE-601
- Reviewed
- 2026-02-03
Affected packages
• npm @anthropic-ai/claude-code: < 1.0.111 → fixed in 1.0.111
Description
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!
Related
Alias · CVE (1)
- CVE-2026-24052 Claude Code is an agentic coding tool. vulnerability
Weakness · CWE (1)
- CWE-601 URL Redirection to Untrusted Site weakness