CVE-2025-65099: Claude Code vulnerable to command execution prior to startup trust dialog

Published Nov 19, 2025
·
Updated

Claude Code is an agentic coding tool. Prior to version 1.0.39, when running on a machine with Yarn 3.0 or above, Claude Code could have been tricked to execute code contained in a project via yarn plugins before the user accepted the startup trust dialog. Exploiting this would have required a user to start Claude Code in an untrusted directory and to be using Yarn 3.0 or above. This issue has been patched in version 1.0.39.

Other sources

When running on a machine with Yarn 3.0 or above, Claude Code could have been tricked to execute code contained in a project via yarn plugins before the user accepted the startup trust dialog. Exploiting this would have required a user to start Claude Code in an untrusted directory running Yarn 3.0 or above.

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 Benjamin Faller, Redguard AG and Michael Hess for reporting this issue!

GitHub

Affected Software

3 affected componentsFixes available
Claude Code<1.0.39
anthropic Claude Code Node.js<1.0.39
npm/@anthropic-ai/claude-code<1.0.39
1.0.39

Event History

Nov 19, 2025
CVE Published
via MITRE·05:35 PM
Data Sourced
via MITRE·05:35 PM
DescriptionWeakness
Data Sourced
via NVD·06:15 PM
DescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·08:33 PM
Data Sourced
via GitHub·08:33 PM
DescriptionWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-65099?

CVE-2025-65099 is considered a high-severity vulnerability as it allows execution of untrusted code prior to user approval.

2

How do I fix CVE-2025-65099?

To fix CVE-2025-65099, update Claude Code to version 1.0.39 or higher to mitigate the risk.

3

What software is affected by CVE-2025-65099?

CVE-2025-65099 affects Claude Code versions prior to 1.0.39 running on machines with Yarn 3.0 or above.

4

What could happen if CVE-2025-65099 is exploited?

If exploited, CVE-2025-65099 could allow an attacker to execute malicious code without the user's consent.

5

Is there a workaround for CVE-2025-65099?

Currently, the recommended solution for CVE-2025-65099 is to upgrade to the latest version of Claude Code.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203