CVE-2026-9277shell-quote `quote()` does not validate object-token shapes, allowing command injection via line terminators in `.op`
Updated under an hour ago ()
Does this affect you?
It affects Red Hat Cryostat 4 on RHEL 9 and 25 other products. Add what you run to find out whether that includes you.
No exploitation reported and no EPSS estimate yet.
Do this next
Free account, 1 product
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`.
- CVSS
- 8.1 HIGH (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weakness (CWE)
- CWE-78, CWE-77
- Known exploited
- Not in CISA's KEV catalog
- EPSS (exploitation in the next 30 days)
- Not loaded for this CVE
- Assigned by
- harborist
- NVD analysis
- Deferred
- Record last updated
- Sep 14, 2026
- First seen by InfoSec Signals
- Oct 9, 2026
Affected products
Red Hat Cryostat 4 on RHEL 9 redhat:cryostat | from 4.2.0-10 not affected | CISA ADP |
Red Hat Cluster Observability Operator 1.5.0 redhat:cluster_observability_operator | from 1782840519 not affected | CISA ADP |
Red Hat Red Hat Ansible Automation Platform 2.1 redhat:ansible_portal | from 1785854226 not affected | CISA ADP |
Red Hat Red Hat Developer Hub 1.10 redhat:rhdh | from 1783448184 not affected | CISA ADP |
Red Hat Red Hat Discovery 2 redhat:discovery | from 1782166952 not affected | CISA ADP |
Red Hat Red Hat Migration Toolkit 1.8 redhat:rhmt | from 1783690532 not affected | CISA ADP |
Red Hat Red Hat OpenShift Container Platform 4.14 redhat:openshift | from 1788218669 not affected | CISA ADP |
Red Hat Red Hat OpenShift Dev Spaces 3.30 redhat:openshift_devspaces | from 1787762793 not affected | CISA ADP |
Red Hat Red Hat OpenShift Service Mesh 2.6 redhat:service_mesh | from 1780907585 not affected | CISA ADP |
Red Hat Red Hat Quay 3.10 redhat:quay | from 1782487717 not affected | CISA ADP |
Red Hat Red Hat Satellite 6.18 redhat:satellite | from 1781032495 not affected | CISA ADP |
Red Hat Gatekeeper 3 redhat:gatekeeper | 3 | CISA ADP |
Red Hat Node HealthCheck Operator redhat:workload_availability_nhc | 0 | CISA ADP |
Red Hat OpenShift Lightspeed redhat:openshift_lightspeed | All versions | CISA ADP |
Red Hat OpenShift Pipelines redhat:openshift_pipelines | 1 | CISA ADP |
Red Hat Red Hat AMQ Broker 7 redhat:amq_broker | 7 | CISA ADP |
Red Hat Red Hat Ansible Automation Platform 2 redhat:ansible_automation_platform | 2 | CISA ADP |
Red Hat Red Hat build of Apache Camel - HawtIO 4 redhat:apache_camel_hawtio | 4 | CISA ADP |
Red Hat Red Hat Build of Podman Desktop redhat:podman_desktop | 1 | CISA ADP |
Red Hat Red Hat Data Grid 8 redhat:jboss_data_grid | 8 | CISA ADP |
Red Hat Red Hat Enterprise Linux 10 redhat:enterprise_linux | 10 | CISA ADP |
Red Hat Red Hat Enterprise Linux AI (RHEL AI) 3 redhat:enterprise_linux_ai | 3 | CISA ADP |
Red Hat Red Hat Fuse 7 redhat:jboss_fuse | 7 | CISA ADP |
Red Hat Red Hat OpenShift AI (RHOAI) redhat:openshift_ai | Versions not stated | CISA ADP |
Red Hat Red Hat OpenShift Virtualization 4 redhat:container_native_virtualization | 4 | CISA ADP |
Red Hat Red Hat Trusted Artifact Signer redhat:trusted_artifact_signer | 1 | CISA ADP |
References
- https://github.com/ljharb/shell-quote/security/advisories/GHSA-w7jw-789q-3m8pvendor-advisory
- https://github.com/ljharb/shell-quote/commit/1518179patch
- https://github.com/ljharb/shell-quoteproduct
- https://www.npmjs.com/package/shell-quoteproduct
- http://www.openwall.com/lists/oss-security/2026/05/23/2
- https://access.redhat.com/errata/RHSA-2026:26072
- https://access.redhat.com/errata/RHSA-2026:26077
- https://access.redhat.com/errata/RHSA-2026:26079
- https://access.redhat.com/errata/RHSA-2026:26080
- https://access.redhat.com/errata/RHSA-2026:26090
- https://access.redhat.com/errata/RHSA-2026:26225
- https://access.redhat.com/errata/RHSA-2026:28010
- https://access.redhat.com/errata/RHSA-2026:28571
- https://access.redhat.com/errata/RHSA-2026:29197
- https://access.redhat.com/errata/RHSA-2026:29795
- https://access.redhat.com/errata/RHSA-2026:29834
- https://access.redhat.com/errata/RHSA-2026:30076
- https://access.redhat.com/errata/RHSA-2026:33574
- https://access.redhat.com/errata/RHSA-2026:33683
- https://access.redhat.com/errata/RHSA-2026:34342
- https://access.redhat.com/errata/RHSA-2026:34791
- https://access.redhat.com/errata/RHSA-2026:36754
- https://access.redhat.com/errata/RHSA-2026:40765
- https://access.redhat.com/errata/RHSA-2026:41066
- https://access.redhat.com/errata/RHSA-2026:41928
The CVE record on cve.org NVD's entry
The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.