GHSA-4fgq-fpq9-mr3g

Suggest an improvement
Source
https://github.com/advisories/GHSA-4fgq-fpq9-mr3g
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/10/GHSA-4fgq-fpq9-mr3g/GHSA-4fgq-fpq9-mr3g.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-4fgq-fpq9-mr3g
Aliases
  • CVE-2025-59536
Published
2025-10-03T14:16:34Z
Modified
2025-10-03T14:57:25.457969Z
Severity
  • 8.7 (High) CVSS_V4 - 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 CVSS Calculator
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!

Database specific
{
    "github_reviewed_at": "2025-10-03T14:16:34Z",
    "nvd_published_at": "2025-10-03T07:15:44Z",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-94"
    ],
    "severity": "HIGH"
}
References

Affected packages

npm / @anthropic-ai/claude-code

Package

Name
@anthropic-ai/claude-code
View open source insights on deps.dev
Purl
pkg:npm/%40anthropic-ai/claude-code

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.0.111

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/10/GHSA-4fgq-fpq9-mr3g/GHSA-4fgq-fpq9-mr3g.json"