CVE catalog

CVE-2026-9277

shell-quote's `quote()` function did not validate object-token inputs against the operator model used by `parse()`. The `.op` field was backslash-escaped character by character using `/(.)/g`, which i

[CVE catalog]

Severity
Critical · CVSS 9.2CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Published
Source
[NVD] · [CVE record]
EPSS
0.79% · Oct 25, 2026

shell-quote's `quote()` function did not validate object-token inputs against the operator model used by `parse()`. The `.op` field was backslash-escaped character by character using `/(.)/g`, which in JavaScript does not match line terminators (\n, \r, U+2028, U+2029). A line terminator in `.op` therefore passed through unescaped into the output; POSIX shells treat a literal newline as a command separator, so any content after it would execute as a second command. The vulnerable code path is reachable in two ways: (1) direct construction of `{ op: '...\n...' }` from external input, and (2) via `parse(cmd, envFn)` when `envFn` returns object tokens whose `.op` is attacker-influenced. Both are documented API surface. Fixed by replacing the per-character escape with strict shape validation: `.op` must match the parser's control-operator allowlist; `{ op: 'glob', pattern }` validates `pattern` and forbids line terminators; `{ comment }` validates `comment` and forbids line terminators; any other object shape throws `TypeError`.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiannode-shell-quotesid1.12.0-1fixed
Debiannode-shell-quoteforky1.12.0-1fixed
Debiannode-shell-quotetrixie1.7.4+~1.7.1-1+deb13u1fixed
Debiannode-shell-quotetrixie-security1.7.4+~1.7.1-1+deb13u2fixed
Debiannode-shell-quotebookworm1.7.4+~1.7.1-1+deb12u1fixed
Debiannode-shell-quotebookworm-security1.7.4+~1.7.1-1+deb12u1fixed
Cpenode-shell-quoteNot reported1.7.4+~1.7.1-1ubuntu0.24.04.1fixed
Ubuntunode-shell-quotepro1.7.4+~1.7.1-1vulnerable
Ubuntunode-shell-quotepro1.8.3+~1.7.5-1vulnerable
Ubuntunode-shell-quotepro1.8.3+~1.7.5-1ubuntu0.1~esm1fixed
Ubuntunode-shell-quote24.041.7.4+~1.7.1-1vulnerable
Ubuntunode-shell-quote24.041.7.4+~1.7.1-1ubuntu0.24.04.1fixed
Ubuntunode-shell-quote25.101.7.4+~1.7.1-1vulnerable
Ubuntunode-shell-quote25.101.7.4+~1.7.1-1ubuntu0.25.10.1fixed
Opensusepython-pytest-htmltumbleweed4.2.0-2.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiannode-shell-quotesourcesid1.8.4+~1.7.5-1not yet assignedNot reported[1137372]
Debiannode-shell-quotesourceforky1.8.4+~1.7.5-1not yet assignedNot reported[1137372]
Debiannode-shell-quotesourcetrixie1.7.4+~1.7.1-1+deb13u1not yet assignedNot reported[1137372]
Debiannode-shell-quotesourcebookworm1.7.4+~1.7.1-1+deb12u1not yet assignedNot reported[1137372]
Cpenode-shell-quotecpeNot reported1.7.4+~1.7.1-1ubuntu0.24.04.1Not reportedNot reportedNot reported
Ubuntunode-shell-quotedebpro1.8.3+~1.7.5-1ubuntu0.1~esm1Not reportedUSN-8410-1Not reported
Ubuntunode-shell-quotedeb24.041.7.4+~1.7.1-1ubuntu0.24.04.1Not reportedUSN-8410-1Not reported
Ubuntunode-shell-quotedeb25.101.7.4+~1.7.1-1ubuntu0.25.10.1Not reportedUSN-8410-1Not reported
Opensusepython-pytest-htmlrpmtumbleweed4.2.0-2.1Not reportedOPENSUSE-SU-2026:10861-1Not reported

[Debian bug #1137372]

OpenFactory catalog packages

[openSUSE Tumbleweed]

  • Source package: [python-pytest-html]

    Details (1)
    • 4.2.0-5.1 · noarch · tumbleweed

      Unknown · Fixed: 4.2.0-2.1

      Version impact unknown

      nvd · python-pytest-html · opensuse · tumbleweed

  • Source package: [python-pytest-html]

    Details (1)
    • 4.2.0-5.1 · noarch · tumbleweed

      Unknown · Fixed: 4.2.0-2.1

      Version impact unknown

      nvd · python-pytest-html · opensuse · tumbleweed

[Debian 12 (Bookworm)]

  • Details (4)
    • 1.7.4+~1.7.1-1+deb12u1 · all · bookworm

      Fixed · Fixed: 1.7.4+~1.7.1-1+deb12u1

      nvd · node-shell-quote · debian · bookworm; nvd · node-shell-quote · debian · 12

    • 1.7.4+~1.7.1-1+deb12u1 · all · bookworm

      Fixed · Fixed: 1.7.4+~1.7.1-1+deb12u1

      nvd · node-shell-quote · debian · bookworm; nvd · node-shell-quote · debian · 12

    • 1.7.4+~1.7.1-1+deb12u1 · all · bookworm-security

      Fixed · Fixed: 1.7.4+~1.7.1-1+deb12u1

      nvd · node-shell-quote · debian · bookworm; nvd · node-shell-quote · debian · 12

    • 1.7.4+~1.7.1-1+deb12u1 · all · bookworm-security

      Fixed · Fixed: 1.7.4+~1.7.1-1+deb12u1

      nvd · node-shell-quote · debian · bookworm; nvd · node-shell-quote · debian · 12

[Debian 13 (Trixie)]

  • Details (5)
    • 1.7.4+~1.7.1-1+deb13u1 · all · trixie

      Fixed · Fixed: 1.7.4+~1.7.1-1+deb13u1

      nvd · node-shell-quote · debian · 13

    • 1.7.4+~1.7.1-1+deb13u1 · all · trixie

      Fixed · Fixed: 1.7.4+~1.7.1-1+deb13u1

      nvd · node-shell-quote · debian · 13

    • 1.7.4+~1.7.1-1+deb13u1 · all · trixie-security · Historical version

      Fixed · Fixed: 1.7.4+~1.7.1-1+deb13u1

      nvd · node-shell-quote · debian · 13

    • 1.7.4+~1.7.1-1+deb13u1 · all · trixie-security

      Fixed · Fixed: 1.7.4+~1.7.1-1+deb13u1

      nvd · node-shell-quote · debian · 13

    • 1.7.4+~1.7.1-1+deb13u2 · all · trixie-security

      Fixed · Fixed: 1.7.4+~1.7.1-1+deb13u1

      nvd · node-shell-quote · debian · 13

Observed:

References