CVE-2026-24052
JSON

7.1high

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

Severity
7.1high CVSS:4.0 by GitHub_M
Exploit likelihood
0.43% (higher than 39% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-vhw5-3g5m-8ggf

Description

Claude Code is an agentic coding tool. Prior to version 1.0.111, 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. This issue has been patched in version 1.0.111.

Affected

Product or packageVersionsReported by
anthropics claude-code< 1.0.111CVE List
@anthropic-ai/claude-code (npm)before 1.0.111GitHub Advisory Database
anthropic claude_codebefore 1.0.111NVD

All scores

GitHub_M7.1high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
NVD7.4high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N

Classification

CWE-601

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

Claude Code is an agentic coding tool. Prior to version 1.0.111, 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. This issue has been patched in version 1.0.111.

GitHub Advisory Database

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!

NVD (es)

Claude Code es una herramienta de codificación agéntica. Antes de la versión 1.0.111, Claude Code contenía una validación de URL insuficiente en su mecanismo de verificación de dominio de confianza para solicitudes WebFetch. La aplicación utilizaba una función startsWith() para validar dominios de confianza (p. ej., docs.python.org, modelcontextprotocol.io), esto podría haber permitido a los atacantes registrar dominios como modelcontextprotocol.io.example.com que pasarían la validación. Esto podría permitir solicitudes automáticas a dominios controlados por el atacante sin el consentimiento del usuario, lo que podría llevar a la exfiltración de datos. Este problema ha sido parcheado en la versión 1.0.111.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-24052 changed 2026-02-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-vhw5-3g5m-8ggf changed 2026-02-03CC-BY-4.0
NVDCVE-2026-24052 changed 2026-06-17Public domain