Skip to content
OpenAdvisories
High USN-9255-1 2 CVEs

node-shell-quote vulnerabilities

Published Nov 30, 2026 · Updated Dec 2, 2026

Summary

It was discovered that shell-quote incorrectly handled parsing input that
contained a large number of tokens. An attacker could possibly use this
issue to cause shell-quote to use excessive resources, leading to a denial
of service. (CVE-2026-13311)

It was discovered that shell-quote did not properly quote strings that
contained line terminators when they followed a comment token. An attacker
could possibly use this issue to execute arbitrary shell commands.
(CVE-2026-102422)

Fixed packages 4

ReleasePackageFixed in
Ubuntu · Pro 18.04 LTS Pro:18.04:LTS node-shell-quote 1.6.1+20160617-git72fb5a8ce29b-1ubuntu0.1~esm2
Ubuntu · Pro 22.04 LTS Pro:22.04:LTS node-shell-quote 1.7.3+~1.7.1-1ubuntu0.1~esm2
Ubuntu · Pro 24.04 LTS Pro:24.04:LTS node-shell-quote 1.7.4+~1.7.1-1ubuntu0.24.04.1+esm1
Ubuntu · Pro 26.04 LTS Pro:26.04:LTS node-shell-quote 1.8.3+~1.7.5-1ubuntu0.1~esm2

Vulnerabilities 2

  • High 8.1
    CVE-2026-102422 Public exploit

    shell-quote `quote()` command injection via a line terminator in a token after a `{ comment }` token

    shell-quote's `quote()` function emits a `{ comment }` token as `#` followed by its text, which comments out the rest of the shell line, including the opening quote of any later string token. A line terminator (\n, \r, U+2028, U+2029) in that later string the…

  • High 7.5

    shell-quote parse() is quadratic in token count, enabling denial of service

    shell-quote prior to 1.8.5 finalizes parsed tokens in parse() using Array.prototype.concat as a reduce accumulator, which reallocates and copies the entire growing array on every iteration. As a result parse() runs in O(n^2) time relative to the number of inp…

References

  • report
    https://ubuntu.com/security/CVE-2026-13311
  • report
    https://ubuntu.com/security/CVE-2026-102422