Advisory

GHSA-4fgq-fpq9-mr3g

Also known as: CVE-2025-59536

Summary

Claude Code can execute commands prior to the startup trust dialog

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!

Severity

High Basis: The source's own band: HIGH

Dates

Published
2025-10-03 14:16 UTC
Modified
2025-10-03 14:57 UTC

Affected packages and fixes

@anthropic-ai/claude-code

npm · All systems

Affected

  • introduced 0, fixed 1.0.111 (semver)

Fixed versions

1.0.111

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences