CVE-2026-9277
A public proof of concept exists; no exploitation attested.
- Published2026-05-22
- Fixed in1.8.4
- WeaknessCWE-77 · CWE-78
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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`.
Timeline
dates in UTC- 2026-05-2214:16CVE publishedNVD
- 2026-10-2319:23First public proof of conceptPoC-in-GitHub
Versions per branch
OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 1.x | ≥ 1.1.0, < 1.8.4 | 1.8.4 | OSV |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA1 product
As harborist, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- shell-quoteother versions: not affected
https://www.npmjs.com/package/shell-quote
Affected- ≥ 1.1.0, < 1.8.4fixed in 1.8.4semver
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2026-05-22
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- @rootio/shell-quoteRoot:npmall versions · fixed in 1.6.3-root.io.4
- @rootio/shell-quoteRoot:npmall versions · fixed in 1.8.1-root.io.2
- @rootio/shell-quoteRoot:npmall versions · fixed in 1.6.3-root.io.3
- @rootio/shell-quoteRoot:npmall versions · fixed in 1.7.2-root.io.1
- @rootio/shell-quoteRoot:npmall versions · fixed in 1.7.2-root.io.2
- @rootio/shell-quoteRoot:npmall versions · fixed in 1.7.3-root.io.1
- @rootio/shell-quoteRoot:npmall versions · fixed in 1.7.3-root.io.2
- @rootio/shell-quoteRoot:npmall versions · fixed in 1.8.0-root.io.1
79 more package ranges on OSV.dev
Vendor advisories
shell-quote: shell-quote: Arbitrary code execution via command injection due to unescaped line terminators
openshift-lightspeed/lightspeed-console-plugin-419-rhel9 as a component of OpenShift Lightspeed · openshift-lightspeed/lightspeed-console-plugin-pf5-rhel9 as a component of OpenShift Lightspeed · openshift-lightspeed/lightspeed-console-plugin-rhel9 as a component of OpenShift Lightspeed · +18 more
Red Hat Security Advisory: OpenShift Virtualization v4.17 Images
Red Hat Security Advisory: OpenShift Container Platform 4.12.99 bug fix and security update
Red Hat Security Advisory: Red Hat Quay 3.14.9
Red Hat Security Advisory: OpenShift Container Platform 4.13.71 bug fix and security update
Red Hat Security Advisory: OpenShift Container Platform 4.14.73 bug fix and security update
31 more advisories
Fix
- Update shell-quote to 1.8.4
- Vendor fix Red Hat Product Security RHSA-2026:93951 · 2 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
- Vendor fix Red Hat Product Security RHSA-2026:70647 · 1 productFor OpenShift Container Platform 4.12 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this asynchronous errata update: https://docs.redhat.com/en/documentation/openshift_container_platform/4.…
- Vendor fix Red Hat Product Security RHSA-2026:70267 · 4 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11458
- Vendor fix Red Hat Product Security RHSA-2026:65840 · 1 productFor OpenShift Container Platform 4.13 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this asynchronous errata update: https://docs.redhat.com/en/documentation/openshift_container_platform/4.…
- Vendor fix Red Hat Product Security RHSA-2026:62410 · 4 productsFor OpenShift Container Platform 4.14 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this asynchronous errata update: https://docs.redhat.com/en/documentation/openshift_container_platform/4.…
- Vendor fix Red Hat Product Security RHSA-2026:60023 · 4 productsFor OpenShift Container Platform 4.17 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this asynchronous errata update: https://docs.redhat.com/en/documentation/openshift_container_platform/4.…
Detection
read 2026-11-01 01:02 UTC- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHub1 repository, unverifiedknown since 2026-11-01DylanZahedi/CVE-2026-9277
- Metasploit modules
- none listed Metasploit Framework
Sources
- NVDCVE recordread 2026-10-23
- CISA-ADPSSVC decisionnone2026-05-22
- CNACVSS 4.09.2known since 2026-10-23
- CNACVSS 3.18.1known since 2026-10-23
- CNAweakness (CWE)CWE-77, CWE-78known since 2026-10-23
- FIRST EPSSEPSS score1.7 %2026-11-25
- PoC-in-GitHubproof of concept1known since 2026-11-01
- OSVaffected packages—
- GitHub AdvisoriesadvisoryCritical2026-06-09
Identifiers
- CGA-2m7c-6c47-63cmsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-2pxg-7954-j773same flawChainguard · CC-BY-NC-ND-4.0
- CGA-36j4-vvh6-3qgwsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-37mg-r8xp-fjvcsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-39pf-6frh-jh4qsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-3j77-9q83-cgm8same flawChainguard · CC-BY-NC-ND-4.0
- CGA-442j-2xmj-3jfvsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-4c7c-vrq4-9x26same flawChainguard · CC-BY-NC-ND-4.0
- CGA-4p35-658j-64fwsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-4x2g-hhc2-422csame flawChainguard · CC-BY-NC-ND-4.0
- CGA-5hm4-9qj7-gj5jsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-5hmx-xmq2-h6hxsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-6p3j-f5cm-3rxcsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-6xr8-m2h4-p7v7same flawChainguard · CC-BY-NC-ND-4.0
- CGA-74pq-6645-745psame flawChainguard · CC-BY-NC-ND-4.0
- CGA-7hc2-8rx5-62rvsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-7r94-4w39-cfhrsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-826j-v3jv-fj75same flawChainguard · CC-BY-NC-ND-4.0
- CGA-83h9-6fv8-phpmsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-85hx-r5cj-mh9csame flawChainguard · CC-BY-NC-ND-4.0
- CGA-8fc3-rh45-vqrgsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-8frg-233r-xjf9same flawChainguard · CC-BY-NC-ND-4.0
- CGA-8w86-xf42-q3rxsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-924q-6xch-qqh4same flawChainguard · CC-BY-NC-ND-4.0
- CGA-9gh2-px7r-4j62same flawChainguard · CC-BY-NC-ND-4.0
- CGA-9vhq-jg4m-2vg3same flawChainguard · CC-BY-NC-ND-4.0
- CGA-9xgr-6g84-vg4jsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-c74j-9qj4-8vcxsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-ch5v-46h9-5qfrsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-cxp7-ggm5-4857same flawChainguard · CC-BY-NC-ND-4.0
- CGA-f37g-982m-vfh2same flawChainguard · CC-BY-NC-ND-4.0
- CGA-fmm2-r92r-7xcmsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-fmrj-6q2h-xqgcsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-g7qj-42mv-39c7same flawChainguard · CC-BY-NC-ND-4.0
- CGA-gj7f-m6q2-rx9psame flawChainguard · CC-BY-NC-ND-4.0
- CGA-h6xm-wmm4-qx2rsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-h7v6-xf59-7q9qsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-hp3p-j4gf-gr6csame flawChainguard · CC-BY-NC-ND-4.0
- CGA-jfr5-pp93-jj2hsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-jg54-5469-cqw8same flawChainguard · CC-BY-NC-ND-4.0
- CGA-mh8g-wr5q-v8vjsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-mhjq-c6m4-hpjvsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-mx8j-cv45-9q3jsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-p2mf-pf8p-c786same flawChainguard · CC-BY-NC-ND-4.0
- CGA-p363-57jr-4fq3same flawChainguard · CC-BY-NC-ND-4.0
- CGA-pchx-96qc-9ww8same flawChainguard · CC-BY-NC-ND-4.0
- CGA-pm6m-m66p-j6h8same flawChainguard · CC-BY-NC-ND-4.0
- CGA-q3jj-qr8j-xmrhsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-q62c-9h8c-37rwsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-q7gj-99ph-wrpqsame flawChainguard · CC-BY-NC-ND-4.0
Technical details
- CVSS v3 vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS 4.0 vector
- 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
- 2026-05-22
- Last modified
- 2026-09-14
- NVD status
- Deferred
- GitHub advisory
- GHSA-w7jw-789q-3m8p
Frequently asked questions
What is CVE-2026-9277?
Is CVE-2026-9277 actively exploited?
What is the CVSS score for CVE-2026-9277?
Running shell-quote? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website checks · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-w7jw-789q-3m8p
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0