CVE-2026-24052: Domain Validation Bypass in @anthropic-ai/claude-code Allows Automatic Requests to Attacker-Controlled Domains

@anthropic-ai/claude-code Updated 03 Feb 2026

Summary

03/02/2026
Yes i
High
7.1

CVE-2026-24052: Claude Code contained insufficient URL validation in its trusted domain verification mechanism for WebFetch requests. Affects @anthropic-ai/claude-code versions < 1.0.111. Fixed in 1.0.111. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Claude Code is a package developed by Anthropic AI that facilitates various functionalities, including web requests and data handling. It is widely used in applications that require reliable domain verification for fetching resources. However, a recent vulnerability has been identified that compromises its trusted domain verification mechanism, potentially exposing users to security risks.

Vulnerability Detail

The vulnerability arises from insufficient URL validation in Claude Code's trusted domain verification for WebFetch requests. The application employs a 'startsWith()' function to validate domains, which can be exploited by attackers to register subdomains that pass this validation check. For instance, a domain like 'modelcontextprotocol.io.example.com' could be accepted as valid, allowing attackers to send automatic requests to their controlled domains without user consent. This could lead to severe consequences, including data exfiltration and unauthorized access to sensitive information.

How To Fix

Latest published version: 2.1.308 as of 23 Oct 2026

npm install @anthropic-ai/claude-code@2.1.308

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.0.111

This is the first release that contains the fix.

npm install @anthropic-ai/claude-code@1.0.111

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can manually inspect and restrict the domains that their application interacts with, ensuring that only trusted domains are allowed. However, this is not a long-term solution and updating the package is strongly recommended.

Conclusion

The identified vulnerability in Claude Code poses significant risks due to its domain validation bypass. Users are strongly encouraged to update to the patched version to mitigate these risks. Utilizing tools like Vulert can help monitor for such vulnerabilities effectively.

See every vulnerability recorded for @anthropic-ai/claude-code →

Share this vulnerability

FAQ

The vulnerability is a domain validation bypass that allows attackers to exploit insufficient URL validation, leading to potential data exfiltration.

You can check if your application is affected by using Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to use the Vulert playground.

If immediate updates are not feasible, ensure to restrict domain access manually and monitor your application for any suspicious activity.

The CVSS score for this vulnerability is 7.1, indicating a high severity level.

The vulnerability was reported by a user on HackerOne, specifically user 47sid-praetorian.

Related vulnerabilities

Recent vulnerabilities recorded for @anthropic-ai/claude-code.

How To Fix

Latest published version: 2.1.308 as of 23 Oct 2026

npm install @anthropic-ai/claude-code@2.1.308

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.0.111

This is the first release that contains the fix.

npm install @anthropic-ai/claude-code@1.0.111

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback