CVE-2026-9277: Node shell quote · shell-quote's quote() function did not validate object-token inputs against the
Affects node-shell-quoteSource GCVE Database
Not known to be exploited · CVSS 8.1 High · fixed in 1.6.1+20160617-git72fb5a8ce29b-1ubuntu0.1~esm1 : patch node-shell-quote soon.
Data as of 24 Nov 2026, 20:12 UTC
- Patch
- Available – fixed in 1.6.1+20160617-git72fb5a8ce29b-1ubuntu0.1~esm1, 1.7.3+~1.7.1-1ubuntu0.1~esm1, 1.7.4+~1.7.1-1ubuntu0.24.04.1 +2
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 22 May 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10node-shell-quotepkg:deb/ubuntu/node-shell-quote?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu Pro 26.04 LTSnode-shell-quotepkg:deb/ubuntu/node-shell-quote?arch=source&distro=esm-apps/resoluteOther threats | Affected
| Fixed in
|
Ubuntu 25.10node-shell-quotepkg:deb/ubuntu/node-shell-quote?arch=source&distro=questingOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSnode-shell-quotepkg:deb/ubuntu/node-shell-quote?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu Pro 22.04 LTSnode-shell-quotepkg:deb/ubuntu/node-shell-quote?arch=source&distro=esm-apps/jammyOther threats | Affected
| Fixed in
|
Ubuntu Pro 18.04 LTSnode-shell-quotepkg:deb/ubuntu/node-shell-quote?arch=source&distro=esm-apps/bionicOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
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`.
References
- ubuntu.com/security/CVE-2026-9277 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-9277 (opens in a new tab)
- github.com/ljharb/shell-quote/security/advisories/GHSA-w7jw-789q-3m8p (opens in a new tab)
- github.com/ljharb/shell-quote (opens in a new tab)
- github.com/ljharb/shell-quote/commit/1518179 (opens in a new tab)
- npmjs.com/package/shell-quote (opens in a new tab)
- openwall.com/lists/oss-security/2026/05/23/2 (opens in a new tab)
- github.com/ljharb/shell-quote/commit/4378a6e613db5948168684864e49b42b83134d2d (opens in a new tab)
- ubuntu.com/security/notices/USN-8410-1 (opens in a new tab)