Predictive Vulnerability Intelligence.

Product

  • Product
  • Pricing
  • Documentation

Company

  • About
  • Partnerships
  • Blog
  • Support

Legal

  • Terms
  • Privacy
  • Data Licensing

© 2026 FAUCET Technologies LLC. All rights reserved.

CVE-2026-9277

38
FAUCET Score

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

First published: May 22, 2026Last modified: May 22, 2026

Impacted Technologies

VendorProductVersion(s)CPE
Https://Www.Npmjs.Com/Package/Shell-QuoteShell-Quote
>= 1.1.0, < 1.8.4CNA affecteddefault unaffected

CVSS Data

CVSS version used by this source: 4.0

9.2CRITICAL

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

Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
PRESENT
Privileges Required
NONE
User Interaction
NONE
VS Confidentiality
HIGH
VS Integrity
HIGH
VS Availability
HIGH
SS Confidentiality
NONE
SS Integrity
NONE
SS Availability
NONE
Exploit Maturity
NOT_DEFINED
CvssVersion
4.0

Exploit Intelligence

EPSS Score
0.85%
Probability of exploitation in next 30 days
EPSS Percentile
54.3%
Percentile rank of EPSS score among Peer Group
As of 2026-07-26
Model: v2026.06.15
This CVE's current EPSS score of 0.0085 is in the 21st percentile among its peer group of 8,915 CVEs.

Social Chatter

The average CVE in this peer group has 0.0 Twitter, 0.1 Reddit, 0.1 Bluesky, 0.0 Mastodon, and 0.2 GitHub mentions.

Media Mentions

The average CVE in this peer group has 0.1 InfoSec Media, 0.0 Vendor Blog, and 0.0 Security Researcher mentions.

Remediation

Patch Available

Vendor Patches (1)

npmpatch availablevia ghsa
Product: shell-quoteFixed in: 1.8.4

Vendor Advisories (1)

npmGHSA-w7jw-789q-3m8pcritical

shell-quote quote() does not escape newlines in object .op values

Jun 9, 2026

References

access.redhat.com / errata/RHSA-2026:26072
access.redhat.com / errata/RHSA-2026:26077
access.redhat.com / errata/RHSA-2026:26079
access.redhat.com / errata/RHSA-2026:26080
access.redhat.com / errata/RHSA-2026:26090
access.redhat.com / errata/RHSA-2026:26225
access.redhat.com / errata/RHSA-2026:26234
access.redhat.com / errata/RHSA-2026:28010
access.redhat.com / errata/RHSA-2026:28571
access.redhat.com / errata/RHSA-2026:29197
access.redhat.com / errata/RHSA-2026:29795
access.redhat.com / errata/RHSA-2026:29834
access.redhat.com / errata/RHSA-2026:30076
access.redhat.com / errata/RHSA-2026:33574
access.redhat.com / errata/RHSA-2026:33683
access.redhat.com / errata/RHSA-2026:34342
access.redhat.com / errata/RHSA-2026:34791
access.redhat.com / errata/RHSA-2026:36754
access.redhat.com / errata/RHSA-2026:40765
access.redhat.com / errata/RHSA-2026:41066
access.redhat.com / errata/RHSA-2026:41928
access.redhat.com / errata/RHSA-2026:42796
access.redhat.com / security/cve/CVE-2026-9277
bugzilla.redhat.com / show_bug.cgi
security.access.redhat.com / data/csaf/v2/vex/2026/cve-2026-9277.json
github.com / ljharb/shell-quote
github.com / ljharb/shell-quote/commit/1518179
github.com / ljharb/shell-quote/security/advisories/GHSA-w7jw-789q-3m8p
npmjs.com / package/shell-quote
openwall.com / lists/oss-security/2026/05/23/2