
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
- Severity
- Critical · CVSS 9.2
CVSS: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.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | node-shell-quote | sid | 1.12.0-1 | fixed |
| Debian | node-shell-quote | forky | 1.12.0-1 | fixed |
| Debian | node-shell-quote | trixie | 1.7.4+~1.7.1-1+deb13u1 | fixed |
| Debian | node-shell-quote | trixie-security | 1.7.4+~1.7.1-1+deb13u2 | fixed |
| Debian | node-shell-quote | bookworm | 1.7.4+~1.7.1-1+deb12u1 | fixed |
| Debian | node-shell-quote | bookworm-security | 1.7.4+~1.7.1-1+deb12u1 | fixed |
| Cpe | node-shell-quote | Not reported | 1.7.4+~1.7.1-1ubuntu0.24.04.1 | fixed |
| Ubuntu | node-shell-quote | pro | 1.7.4+~1.7.1-1 | vulnerable |
| Ubuntu | node-shell-quote | pro | 1.8.3+~1.7.5-1 | vulnerable |
| Ubuntu | node-shell-quote | pro | 1.8.3+~1.7.5-1ubuntu0.1~esm1 | fixed |
| Ubuntu | node-shell-quote | 24.04 | 1.7.4+~1.7.1-1 | vulnerable |
| Ubuntu | node-shell-quote | 24.04 | 1.7.4+~1.7.1-1ubuntu0.24.04.1 | fixed |
| Ubuntu | node-shell-quote | 25.10 | 1.7.4+~1.7.1-1 | vulnerable |
| Ubuntu | node-shell-quote | 25.10 | 1.7.4+~1.7.1-1ubuntu0.25.10.1 | fixed |
| Opensuse | python-pytest-html | tumbleweed | 4.2.0-2.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | node-shell-quote | source | sid | 1.8.4+~1.7.5-1 | not yet assigned | Not reported | [1137372] |
| Debian | node-shell-quote | source | forky | 1.8.4+~1.7.5-1 | not yet assigned | Not reported | [1137372] |
| Debian | node-shell-quote | source | trixie | 1.7.4+~1.7.1-1+deb13u1 | not yet assigned | Not reported | [1137372] |
| Debian | node-shell-quote | source | bookworm | 1.7.4+~1.7.1-1+deb12u1 | not yet assigned | Not reported | [1137372] |
| Cpe | node-shell-quote | cpe | Not reported | 1.7.4+~1.7.1-1ubuntu0.24.04.1 | Not reported | Not reported | Not reported |
| Ubuntu | node-shell-quote | deb | pro | 1.8.3+~1.7.5-1ubuntu0.1~esm1 | Not reported | USN-8410-1 | Not reported |
| Ubuntu | node-shell-quote | deb | 24.04 | 1.7.4+~1.7.1-1ubuntu0.24.04.1 | Not reported | USN-8410-1 | Not reported |
| Ubuntu | node-shell-quote | deb | 25.10 | 1.7.4+~1.7.1-1ubuntu0.25.10.1 | Not reported | USN-8410-1 | Not reported |
| Opensuse | python-pytest-html | rpm | tumbleweed | 4.2.0-2.1 | Not reported | OPENSUSE-SU-2026:10861-1 | Not reported |
OpenFactory catalog packages
[openSUSE Tumbleweed]
- [python313-pytest-html]Unknown
Source package: [python-pytest-html]
Details (1)
4.2.0-5.1· noarch · tumbleweedUnknown · Fixed:
4.2.0-2.1Version impact unknown
nvd · python-pytest-html · opensuse · tumbleweed
- [python314-pytest-html]Unknown
Source package: [python-pytest-html]
Details (1)
4.2.0-5.1· noarch · tumbleweedUnknown · Fixed:
4.2.0-2.1Version impact unknown
nvd · python-pytest-html · opensuse · tumbleweed
[Debian 12 (Bookworm)]
- [node-shell-quote]Fixed
Details (4)
1.7.4+~1.7.1-1+deb12u1· all · bookwormFixed · Fixed:
1.7.4+~1.7.1-1+deb12u1nvd · node-shell-quote · debian · bookworm; nvd · node-shell-quote · debian · 12
1.7.4+~1.7.1-1+deb12u1· all · bookwormFixed · Fixed:
1.7.4+~1.7.1-1+deb12u1nvd · node-shell-quote · debian · bookworm; nvd · node-shell-quote · debian · 12
1.7.4+~1.7.1-1+deb12u1· all · bookworm-securityFixed · Fixed:
1.7.4+~1.7.1-1+deb12u1nvd · node-shell-quote · debian · bookworm; nvd · node-shell-quote · debian · 12
1.7.4+~1.7.1-1+deb12u1· all · bookworm-securityFixed · Fixed:
1.7.4+~1.7.1-1+deb12u1nvd · node-shell-quote · debian · bookworm; nvd · node-shell-quote · debian · 12
[Debian 13 (Trixie)]
- [node-shell-quote]Fixed
Details (5)
1.7.4+~1.7.1-1+deb13u1· all · trixieFixed · Fixed:
1.7.4+~1.7.1-1+deb13u1nvd · node-shell-quote · debian · 13
1.7.4+~1.7.1-1+deb13u1· all · trixieFixed · Fixed:
1.7.4+~1.7.1-1+deb13u1nvd · node-shell-quote · debian · 13
1.7.4+~1.7.1-1+deb13u1· all · trixie-security · Historical versionFixed · Fixed:
1.7.4+~1.7.1-1+deb13u1nvd · node-shell-quote · debian · 13
1.7.4+~1.7.1-1+deb13u1· all · trixie-securityFixed · Fixed:
1.7.4+~1.7.1-1+deb13u1nvd · node-shell-quote · debian · 13
1.7.4+~1.7.1-1+deb13u2· all · trixie-securityFixed · Fixed:
1.7.4+~1.7.1-1+deb13u1nvd · node-shell-quote · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-9277]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-9277]
- [https://osv.dev/vulnerability/USN-8410-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2026:10861-1]
- [https://security-tracker.debian.org/tracker/CVE-2026-9277]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-9277.json]
- [https://ubuntu.com/security/notices/USN-8410-1]
- [https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-1934.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX] · [Ubuntu Security Notices (USN)]