CVE-2025-69262CWE-78CWE-94command-injectioncode-injection

CVE-2025-69262

High · published January 8, 2026

CVSS v3.1
7.5
EPSS
1%
Percentile
63.5
In the wild
Unconfirmed
What it is

⚡ An environment variable is all an attacker needs for Remote Code Execution in pnpm! 🔥 Think of your .npmrc file as a recipe where a sneaky chef adds their own ingredients in the middle of cooking — if they control those ingredients, they can completely change the dish. In this case, the dish is your build environment, and it could end with malicious code running unchecked. An attacker could exploit this vulnerability during pnpm operations, allowing them to run arbitrary code in your build environment. This could lead to compromised systems, data breaches, or even full access to your infrastructure, which is absolutely devastating!

Put simply

Think of your .npmrc file as a recipe where a sneaky chef adds their own ingredients in the middle of cooking — if they control those ingredients, they can completely change the dish. In this case, the dish is your build environment, and it could end with malicious code running unchecked. The command injection vulnerability arises from improper handling of environment variable substitutions in the .npmrc configuration files, specifically when using tokenHelper settings. This flaw can allow attackers to inject malicious commands during pnpm operations, triggering Remote Code Execution.

What to do

An attacker could exploit this vulnerability during pnpm operations, allowing them to run arbitrary code in your build environment. This could lead to compromised systems, data breaches, or even full access to your infrastructure, which is absolutely devastating! Immediately update pnpm to version 10.27.0 to close this vulnerability. Review your .npmrc configurations to ensure no dangerous variables are present, and consider implementing strict access controls to manage environment variable settings. You've got this! With these steps, you can secure your environment and protect your builds like a true security hero! 🛡️

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01041 · 63.5th percentile
Weaknesses
CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection'); CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2026-01-08T04:15Z
Affected products (1)
ProductVersionsFixed in
pnpm/pnpm≥ 6.25.0, < 10.27.010.27.0
References (3)
EPSS history
Timeline
  • 07 JAN 22:30Z
    pnpm vulnerable to Command Injection via environment variable substitution
    cvelistv5