CVE-2025-65099CWE-94code-injection

CVE-2025-65099

Critical · published November 19, 2025

CVSS v3.1
9.8
EPSS
1%
Percentile
44.9
In the wild
Unconfirmed
What it is

⚡ A user could trigger code execution just by starting Claude Code in a risky directory! 😱 Think of it like a chef who starts cooking without checking the pantry first—if they grab a rogue ingredient, it could ruin the entire dish. In this case, running Claude Code with Yarn 3.0 in an untrusted environment is a recipe for disaster! An attacker could potentially execute malicious code lurking in the project directory before the user even accepts the startup trust dialog. This could lead to unauthorized access, data theft, or even complete compromise of the machine—definitely not a situation you'd want to find yourself in!

Put simply

Think of it like a chef who starts cooking without checking the pantry first—if they grab a rogue ingredient, it could ruin the entire dish. In this case, running Claude Code with Yarn 3.0 in an untrusted environment is a recipe for disaster! This vulnerability in Claude Code allows untrusted code execution via yarn plugins before the user is prompted for trust, specifically when running on Yarn 3.0 or above and in untrusted directories.

What to do

An attacker could potentially execute malicious code lurking in the project directory before the user even accepts the startup trust dialog. This could lead to unauthorized access, data theft, or even complete compromise of the machine—definitely not a situation you'd want to find yourself in! To protect yourself, immediately update Claude Code to version 1.0.39 or higher. Be sure to always run your coding tools in trusted directories to minimize risk. Regularly review your coding environment to ensure all components are patched and secure. You've got this! Stay vigilant and secure your coding environment! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00545 · 44.9th percentile
Weakness
CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2025-11-19T23:15Z
Affected products (1)
ProductVersionsFixed in
anthropic/claude_code< 1.0.391.0.39
References (1)
EPSS history
Timeline
  • 19 NOV 17:35Z
    Claude Code vulnerable to command execution prior to startup trust dialog
    cvelistv5