INCIDENT MAP

Browse / Tool and Agent Misuse / CVE-2025-59536

Claude Code can execute commands prior to the startup trust dialog

CVE-2025-59536 ยท 2025-10-03 high

Class
Tool and Agent Misuse (filed by a model that read the advisory)
Technique
Code and command execution
Affected
@anthropic-ai/claude-code (npm)
Gets past
Approval or confirmation prompt
CVSS
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
EPSS
25.2% chance of exploitation in 30 days

How it works, in short

Project code ran at startup before the user accepted the trust dialog when Claude Code was opened in an untrusted directory. (Our summary, written by a model. The source text is below.)

Details

Due to a bug in the startup trust dialog implementation, Claude Code could be tricked to execute code contained in a project before the user accepted the startup trust dialog. Exploiting this requires a user to start Claude Code in an untrusted directory.

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

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

References

Source: GitHub Advisory Database, used under CC BY 4.0.