Command Injection Affecting @nx/node package, versions >=21.0.0 <22.7.9>=23.0.0 <23.1.2


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.14% (4th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-NXNODE-22149919
  • published3 Nov 2026
  • disclosed29 Oct 2026
  • creditArkadiusz Marta

Introduced: 29 Oct 2026

NewCVE-2026-119282  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade @nx/node to version 22.7.9, 23.1.2 or higher.

Overview

@nx/node is an AI-first build platform that connects everything from your editor to CI. Helping you deliver fast, without breaking things.

Affected versions of this package are vulnerable to Command Injection via maven-analyzer.ts and related spawn utilities in @nx/maven and @nx/gradle, which invoke child processes with shell: true and interpolate values read from nx.json directly into the command line. An attacker who controls nx.json (for example, by contributing to a repository) can inject arbitrary shell commands into plugin option values such as targetNamePrefix, causing those commands to execute whenever any nx command triggers project graph construction. In the Gradle case, the open index signature of GradlePluginOptions also makes option keys injectable, broadening the attack surface.

CVSS Base Scores

version 4.0
version 3.1