CVE-2025-59828
Description
Claude Code is an agentic coding tool. Prior to Claude Code version 1.0.39, when using Claude Code with Yarn versions 2.0+, Yarn plugins are auto-executed when running yarn --version. This could lead to a bypass of the directory trust dialog in Claude Code, as plugins would be executed prior to the user accepting the risks of working in an untrusted directory. Users running Yarn Classic were unaffected by this issue. This issue has been fixed in version 1.0.39. 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.
Weakness
CISA SSVC decision points
| Exploitation | none |
|---|---|
| Automatable | no |
| Technical impact | total |
| Scored | 2025-09-24 |
Timeline
- 2025-09-24Published by the CNA19:30 UTC
- 2025-09-24GitHub advisory published (GHSA-2jjv-qf24-vfm4)same day
- 2025-09-24CISA SSVC decision recordedsame day
Exploit and advisory records
GitHub advisory GHSA-2jjv-qf24-vfm4, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| npm @anthropic-ai/claude-code | before 1.0.39 | 1.0.39 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| anthropic claude_code | before 1.0.39fixed in 1.0.39 | 1.0.39 |
References
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2025-59828'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2025-59828'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2025-59828'curl 'https://api.contrastcyber.com/cve_products/CVE-2025-59828'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).