🛡️ CVE-2026-9277 on Debian — node-shell-quote
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.
Distribution advisory
This page covers CVE-2026-9277 as tracked by Debian, for the package node-shell-quote. The fix is available in version 1.8.4+~1.7.5-1; earlier versions remain affected.
How this vulnerability can be exploited
This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity high, availability high.
Weakness class
DEBIAN-CVE-2026-9277 is classified as CWE-77: Command Injection. User input is placed into a command that the system interprets, allowing extra commands to be appended to the intended one.
Affected software
DEBIAN-CVE-2026-9277 is recorded against 1 package.
- node-shell-quote (fixed in 1.8.4+~1.7.5-1)
Timeline and source
Published on 22 May 2026 and last revised on 20 August 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
CVE-2026-9277 on other distributions
Each distribution ships its own build and its own fixed version. Pick the one you run:
Details
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
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| node-shell-quote | — | 1.8.4+~1.7.5-1 |
References
Similar Threats
- Unknown UBUNTU-CVE-2026-13311
- Unknown USN-8410-1
- Unknown DEBIAN-CVE-2026-9277
- Unknown UBUNTU-CVE-2026-9277
- Unknown DEBIAN-CVE-2021-42740
Exploit Protection
Are you running node-shell-quote?
DEBIAN-CVE-2026-9277 carries CVSS 9.5 Critical rating. BotEraser checks your installation against this and other known CVE records, and blocks IPs associated with exploit activity.
Check My Site For DEBIAN-CVE-2026-9277 →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.