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

CVE-2025-55284: Claude Code's Permissive Default Allowlist Enables Unauthorized File Read and Network Exfiltration in Claude Code

highCVSS 4.0 7.1GHSA-x5gv-jw7f-j6xj

Before Claude Code 1.0.4, an overly broad allowlist of "safe" commands let an attacker make the agent read a file and send its contents over the network without a confirmation prompt. The attacker has to get untrusted content, such as a prompt injection, into the context window. Fixed in @anthropic-ai/claude-code 1.0.4.

Published Aug 18, 2025 · Analysis Nov 1, 2026

What an attacker can do

Claude Code asks for confirmation before it runs most shell commands, and skips the prompt for commands on a list of safe ones. That list was too broad. A command allowed without asking could be combined to read a local file and send what it read to a remote host, so the confirmation prompt, the control meant to stop exfiltration, never appeared.

The advisory says reliable exploitation needs the ability to put untrusted content into the context window. In practice that means a prompt injection in a README, web page, issue, or tool result the agent processes. The injected instruction tells the agent to read a sensitive file such as an .env or key file and post it to the attacker. The developer sees no prompt. Only confidentiality is affected (the vector lists VC:H and nothing else). The advisory does not name the specific commands on the allowlist.

Who is affected

@anthropic-ai/claude-code before 1.0.4. The advisory text also says versions before 1.0.24 are deprecated and were forced to update, which does not match the 1.0.4 patched version in the package data. Check the installed build:

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

An up-to-date auto-updating install is well past both numbers.

@anthropic-ai/claude-code

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

How to fix it

Update Claude Code to 1.0.4 or later:

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

Users on standard auto-update received the fix automatically after release. The advisory lists no workaround. Treat any pinned or containerized old build as affected, and update it. If an old build processed untrusted content, rotate secrets stored in files the agent could read.

How to tell if you were hit

Review shell history and session transcripts of Claude Code runs for commands that read a sensitive file and, in the same or the next call, contact an outside host, for example with curl or wget. Check network logs for unexpected outbound requests from developer machines at the time of agent sessions. Beam records agent shell commands and file access, and its rules flag risky ones, so a read-then-send sequence of that kind can be reviewed after the fact.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Due to an overly broad allowlist of safe commands, it was possible to bypass the Claude Code confirmation prompts to read a file and then send file contents over the network without user confirmation. Reliably exploiting this requires the ability to add untrusted content into a Claude Code context window.

Users on standard Claude Code auto-update received this fix automatically after release. Current users of Claude Code are unaffected, as versions prior to 1.0.24 are deprecated and have been forced to update.

Thank you to https://hackerone.com/wunderwuzzi23 for reporting this issue!

Questions

Do I need to update if I use auto-update?

No. The advisory says users on standard auto-update received the fix automatically. Check claude --version on pinned installs, containers and CI images.

What does the attacker need?

The ability to add untrusted content into Claude Code's context window, for example through a file or web page the agent reads. No account on the victim's machine is needed.

Which version fixes CVE-2025-55284?

1.0.4 according to the package data. The advisory prose also mentions 1.0.24 as the minimum non-deprecated version, so use a current release.

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