node-shell-quote quotes and parses shell commands for Node.js programs.
An attacker who can supply the text a program quotes after a comment can run a shell command. An attacker who can supply the text a program parses can stall that program.
CVE-2026-102422
quote() turns a comment token into a shell comment. That comment
runs to the end of the line, including the opening quote of a
later string. A line break in that later string ends the
comment, and the rest of the string is shell syntax.
CVE-2026-13311
parse() copied the whole token list again for every token it
kept. The work grows with the square of the number of tokens.
0:1.7.4+~1.7.1-1+deb12u2