Command Injection Affecting org.webjars.npm:shell-quote package, versions [1.10.0,]


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.38% (30th 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-JAVA-ORGWEBJARSNPM-20250994
  • published29 Sept 2026
  • disclosed29 Sept 2026
  • creditEurico Nicacio, Jordan Harband

Introduced: 29 Sep 2026

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

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

org.webjars.npm:shell-quote is a package used to quote and parse shell commands.

Affected versions of this package are vulnerable to Command Injection via the quote function when a { comment } token is followed by a string token containing a line terminator. A { comment } token emits a #-prefixed string that comments out the rest of the shell line, including the opening quote of any subsequent string token. A line terminator inside that subsequent string ends the comment, causing the remainder of the string to be interpreted as shell input - for example, quote(['echo', { comment: 'x' }, 'a\nid;#']) executes id in sh, bash, zsh, ksh, and dash. Because parse emits a comment token for a mid-word # (such as in a URL fragment), appending tokens to parse output is sufficient to reach the vulnerable code path.

CVSS Base Scores

version 4.0
version 3.1