Vulnerabilities · 2025 · Anthropic
CVE-2025-59828
Anthropic Claude Code vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Claude Code. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Anthropic Claude Code runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/anthropics/claude-code/security/advisories/GHSA-2jjv-qf24-vfm4
- nvd.nist.gov/vuln/detail/CVE-2025-59828
- osv.dev/vulnerability/GHSA-2jjv-qf24-vfm4
- www.cve.org/CVERecord?id=CVE-2025-59828
- yarnpkg.com/advanced/plugin-tutorial
- github.com/advisories/GHSA-2jjv-qf24-vfm4
- nvd.nist.gov/vuln/detail/CVE-2025-59828
- cve.org/CVERecord?id=CVE-2025-59828
More vulnerabilities in Anthropic products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.