CVE-2026-9277: Vulnerability in shell-quote

Critical. 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...

npm, CWE-77, CWE-78

Exploitation
None confirmed
Severity
8.1 of 10
Attack likelihood
Unknown
Fix
Fixed version known
Patch deadline
No deadline set

Details

Advisory ID
GHSA-w7jw-789q-3m8p
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-77, CWE-78
Published
22 May 2026
Last change
14 Sept 2026
Ecosystem
npm

Affected packages

Vulnerable version ranges and fixed releases

  • shell-quote npm, Affected from 1.1.0 through 1.8.3. Fixed in 1.8.4

Advisories

Vendor and security advisories

Patches and fixes

Updates, commits and release notes