shell-quote `quote()` does not validate object-token shapes, allowing command injection via line terminators in `.op`
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 33 fixed, 9 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-77.
Summary
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`.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | shell-quote | 1.1.0 to before 1.8.4 | 1.8.4 | Patch available | CNA |
| — | shell-quote (npm) | 1.1.0 to before 1.8.4 | 1.8.4 | Patch available | GHSA-w7jw-789q-3m8p |
- shell-quote Vendor— Affected 1.1.0 to before 1.8.4 Fixed in 1.8.4 Patch available CNA
- shell-quote (npm) Vendor— Affected 1.1.0 to before 1.8.4 Fixed in 1.8.4 Patch available GHSA-w7jw-789q-3m8p
Remediation
- Fix · CNA shell-quote Fixed in 1.8.4
- Fix · GHSA-w7jw-789q-3m8p shell-quote (npm) Fixed in 1.8.4 Advisory →
Red Hat 36 advisories
- RHSA-2026:93951 Released 2026-11-02 · Red Hat rating ImportantOpenShift Virtualization v4.17 Images
- Red Hat Container Native Virtualization 4.17 registry.redhat.io/container-native-virtualization/kubevirt-console-plugin-rhel9
- RHSA-2026:70647 Released 2026-10-01 · Red Hat rating ImportantOpenShift Container Platform 4.12.99 bug fix and security update
- Red Hat OpenShift Container Platform 4.12 registry.redhat.io/openshift4/cloud-network-config-controller-rhel8, registry.redhat.io/openshift4/egress-router-cni-rhel8, registry.redhat.io/openshift4/kubevirt-csi-driver-rhel8 +47
- RHSA-2026:70267 Released 2026-09-22 · Red Hat rating ImportantRed Hat Quay 3.14.9
- Red Hat Quay 3.14 registry.redhat.io/quay/quay-rhel8
Show 33 more Red Hat advisories
- RHSA-2026:65840 Released 2026-09-17 · Red Hat rating ImportantOpenShift Container Platform 4.13.71 bug fix and security update
- Red Hat OpenShift Container Platform 4.13 registry.redhat.io/openshift4/cloud-network-config-controller-rhel8, registry.redhat.io/openshift4/egress-router-cni-rhel8, registry.redhat.io/openshift4/kubevirt-csi-driver-rhel8 +47
- RHSA-2026:62410 Released 2026-09-11 · Red Hat rating ImportantOpenShift Container Platform 4.14.73 bug fix and security update
- Red Hat OpenShift Container Platform 4.14 registry.redhat.io/openshift4/ose-cli-artifacts, registry.redhat.io/openshift4/ose-cluster-image-registry-operator, registry.redhat.io/openshift4/ose-cluster-platform-operators-manager-rhel8 +6
- RHSA-2026:60023 Released 2026-09-03 · Red Hat rating ImportantOpenShift Container Platform 4.17.57 bug fix and security update
- Red Hat OpenShift Container Platform 4.17 registry.redhat.io/openshift4/egress-router-cni-rhel9, registry.redhat.io/openshift4/frr-rhel9, registry.redhat.io/openshift4/ose-apiserver-network-proxy-rhel9 +20
- RHSA-2026:62260 Released 2026-09-01 · Red Hat rating ImportantRed Hat OpenShift Dev Spaces 3.30.0 Release.
- Red Hat OpenShift Dev Spaces 3.30 registry.redhat.io/devspaces/code-rhel9, registry.redhat.io/devspaces/configbump-rhel9, registry.redhat.io/devspaces/dashboard-rhel9 +7
- RHSA-2026:56912 Released 2026-08-26 · Red Hat rating CriticalOpenShift Container Platform 4.15.68 bug fix and security update
- Red Hat OpenShift Container Platform 4.15 registry.redhat.io/openshift4/kubevirt-csi-driver-rhel8, registry.redhat.io/openshift4/ose-apiserver-network-proxy-rhel9, registry.redhat.io/openshift4/ose-console +5
- RHSA-2026:56854 Released 2026-08-26 · Red Hat rating ImportantOpenShift Container Platform 4.16.69 bug fix and security update
- Red Hat OpenShift Container Platform 4.16 registry.redhat.io/openshift4/aws-kms-encryption-provider-rhel9, registry.redhat.io/openshift4/azure-kms-encryption-provider-rhel9, registry.redhat.io/openshift4/cloud-network-config-controller-rhel9 +47
- RHSA-2026:54395 Released 2026-08-12 · Red Hat rating ImportantRed Hat Quay 3.17.4
- Red Hat Quay 3.17 registry.redhat.io/quay/quay-rhel9
- RHSA-2026:50850 Released 2026-08-05 · Red Hat rating ImportantRed Hat Ansible Automation Platform 2.1 security update
- Red Hat Ansible Automation Platform 2.1 registry.redhat.io/ansible-automation-platform/automation-portal
- RHSA-2026:48699 Released 2026-08-05 · Red Hat rating CriticalOpenShift Container Platform 4.18.51 bug fix and security update
- Red Hat OpenShift Container Platform 4.18 registry.redhat.io/openshift4/ose-cloud-credential-rhel9-operator, registry.redhat.io/openshift4/ose-console-rhel9, registry.redhat.io/openshift4/ose-hypershift-rhel9 +1
- RHSA-2026:44267 Released 2026-07-28 · Red Hat rating ImportantOpenShift Container Platform 4.21.26 bug fix and security update
- Red Hat OpenShift Container Platform 4.21 registry.redhat.io/openshift4/ose-agent-installer-ui-rhel9, registry.redhat.io/openshift4/ose-azure-workload-identity-webhook-rhel9, registry.redhat.io/openshift4/ose-console-rhel9 +1
- RHSA-2026:44263 Released 2026-07-28 · Red Hat rating ImportantOpenShift Container Platform 4.20.31 bug fix and security update
- Red Hat OpenShift Container Platform 4.20 registry.redhat.io/openshift4/ose-agent-installer-ui-rhel9, registry.redhat.io/openshift4/ose-console-rhel9, registry.redhat.io/openshift4/ose-monitoring-plugin-rhel9 +1
- RHSA-2026:44237 Released 2026-07-28 · Red Hat rating ImportantOpenShift Container Platform 4.22.7 bug fix and security update
- Red Hat OpenShift Container Platform 4.22 registry.redhat.io/openshift4/ose-agent-installer-ui-rhel9, registry.redhat.io/openshift4/ose-cluster-capi-rhel9-operator, registry.redhat.io/openshift4/ose-console-rhel9 +1
- RHSA-2026:40765 Released 2026-07-22 · Red Hat rating ImportantOpenShift Container Platform 4.19.39 bug fix and security update
- Red Hat OpenShift Container Platform 4.19 registry.redhat.io/openshift4/ose-console-rhel9, registry.redhat.io/openshift4/ose-monitoring-plugin-rhel9
- RHSA-2026:42796 Released 2026-07-21 · Red Hat rating ImportantRed Hat Quay 3.15.6
- Red Hat Quay 3.15 registry.redhat.io/quay/quay-rhel8
- RHSA-2026:41928 Released 2026-07-20 · Red Hat rating ImportantRed Hat Migration Toolkit for Containers
- Red Hat Migration Toolkit 1.8 registry.redhat.io/rhmtc/openshift-migration-controller-rhel8, registry.redhat.io/rhmtc/openshift-migration-hook-runner-rhel8, registry.redhat.io/rhmtc/openshift-migration-log-reader-rhel8 +6
- RHSA-2026:41066 Released 2026-07-16 · Red Hat rating ImportantRed Hat Quay 3.16.5
- Red Hat Quay 3.16 registry.redhat.io/quay/quay-rhel9
- RHSA-2026:36754 Released 2026-07-08 · Red Hat rating ImportantRed Hat Developer Hub 1.10.2 release.
- Red Hat Developer Hub 1.10 registry.redhat.io/rhdh/rhdh-hub-rhel9, registry.redhat.io/rhdh/rhdh-rhel9-operator
- RHSA-2026:34791 Released 2026-07-07 · Red Hat rating ImportantOpenShift Container Platform 4.20.28 bug fix and security update
- Red Hat OpenShift Container Platform 4.20 registry.redhat.io/openshift4/ose-console-rhel9, registry.redhat.io/openshift4/ose-csi-external-provisioner-rhel9
- RHSA-2026:34342 Released 2026-07-01 · Red Hat rating CriticalCluster Observability Operator 1.5.0
- Cluster Observability Operator 1.5 registry.redhat.io/cluster-observability-operator/distributed-tracing-console-plugin-pf4-rhel9, registry.redhat.io/cluster-observability-operator/distributed-tracing-console-plugin-pf5-rhel9, registry.redhat.io/cluster-observability-operator/distributed-tracing-console-plugin-pf6-rhel9 +9
- RHSA-2026:33683 Released 2026-06-30 · Red Hat rating ImportantRed Hat Quay 3.10.23
- Red Hat Quay 3.10 registry.redhat.io/quay/quay-rhel8
- RHSA-2026:29795 Released 2026-06-30 · Red Hat rating ImportantOpenShift Container Platform 4.22.3 bug fix and security update
- Red Hat OpenShift Container Platform 4.22 registry.redhat.io/openshift4/ose-console-rhel9, registry.redhat.io/openshift4/ose-csi-external-provisioner-rhel9, registry.redhat.io/openshift4/ose-monitoring-plugin-rhel9
- RHSA-2026:33574 Released 2026-06-30 · Red Hat rating ImportantRed Hat Developer Hub 1.9.6 release.
- Red Hat Developer Hub 1.9 registry.redhat.io/rhdh/rhdh-hub-rhel9, registry.redhat.io/rhdh/rhdh-rhel9-operator
- RHSA-2026:29834 Released 2026-06-30 · Red Hat rating ImportantOpenShift Container Platform 4.21.22 bug fix and security update
- Red Hat OpenShift Container Platform 4.21 registry.redhat.io/openshift4/ose-console-rhel9, registry.redhat.io/openshift4/ose-monitoring-plugin-rhel9
- RHSA-2026:30076 Released 2026-06-25 · Red Hat rating ImportantRed Hat Quay 3.12.19
- Red Hat Quay 3.12 registry.redhat.io/quay/quay-rhel8
- RHSA-2026:29197 Released 2026-06-24 · Red Hat rating ImportantA Subscription Management tool for finding and reporting Red Hat product usage
- Red Hat Discovery 2 registry.redhat.io/discovery/discovery-server-rhel9, registry.redhat.io/discovery/discovery-ui-rhel9
- RHSA-2026:28571 Released 2026-06-23 · Red Hat rating ImportantRed Hat Quay 3.9.23
- Red Hat Quay 3.9 registry.redhat.io/quay/quay-rhel8
- RHSA-2026:28010 Released 2026-06-22 · Red Hat rating ImportantRed Hat build of Cryostat security update
- Cryostat 4 on RHEL 9 cryostat/cryostat-openshift-console-plugin-rhel9, cryostat/cryostat-reports-rhel9, cryostat/cryostat-rhel9 +3
- RHSA-2026:26225 Released 2026-06-16 · Red Hat rating ImportantTechnical preview of the satellite/iop-vulnerability-frontend-rhel9 container image
- Red Hat Satellite 6.18 registry.redhat.io/satellite/iop-vulnerability-frontend-rhel9
- RHSA-2026:26090 Released 2026-06-15 · Red Hat rating ImportantKiali 2.22.5 for Red Hat OpenShift Service Mesh 3.3
- Red Hat OpenShift Service Mesh 3.3 registry.redhat.io/openshift-service-mesh/kiali-ossmc-rhel9, registry.redhat.io/openshift-service-mesh/kiali-rhel9
- RHSA-2026:26080 Released 2026-06-15 · Red Hat rating ImportantKiali 2.4.18 for Red Hat OpenShift Service Mesh 3.0
- Red Hat OpenShift Service Mesh 3.0 registry.redhat.io/openshift-service-mesh/kiali-ossmc-rhel9, registry.redhat.io/openshift-service-mesh/kiali-rhel9
- RHSA-2026:26079 Released 2026-06-15 · Red Hat rating ImportantKiali 2.17.9 for Red Hat OpenShift Service Mesh 3.2
- Red Hat OpenShift Service Mesh 3.2 registry.redhat.io/openshift-service-mesh/kiali-ossmc-rhel9, registry.redhat.io/openshift-service-mesh/kiali-rhel9
- RHSA-2026:26077 Released 2026-06-15 · Red Hat rating ImportantKiali 2.11.12 for Red Hat OpenShift Service Mesh 3.1
- Red Hat OpenShift Service Mesh 3.1 registry.redhat.io/openshift-service-mesh/kiali-ossmc-rhel9, registry.redhat.io/openshift-service-mesh/kiali-rhel9
- RHSA-2026:26072 Released 2026-06-15 · Red Hat rating ImportantKiali 1.73.32 for Red Hat OpenShift Service Mesh 2.6
- Red Hat OpenShift Service Mesh 2.6 registry.redhat.io/openshift-service-mesh/kiali-ossmc-rhel8, registry.redhat.io/openshift-service-mesh/kiali-rhel8
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| OpenShift Lightspeed | Affected | No fix yet |
| OpenShift Pipelines | Affected | No fix yet |
| Red Hat Ansible Automation Platform 2 | Affected | No fix planned: Will not fix |
| Red Hat Build of Podman Desktop | Affected | No fix planned: Will not fix |
| Red Hat Build of Podman Desktop - Tech Preview | Affected | No fix yet |
| Red Hat Enterprise Linux 9 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux AI (RHEL AI) 3 | Affected | No fix planned: Will not fix |
| Red Hat Fuse 7 | Affected | No fix planned: Will not fix |
| Red Hat OpenShift Container Platform 5 | Affected | No fix yet |
| Cluster Observability Operator 1.5 | Fixed | RHSA-2026:34342 |
| Cryostat 4 on RHEL 9 | Fixed | RHSA-2026:28010 |
| Red Hat Ansible Automation Platform 2.1 | Fixed | RHSA-2026:50850 |
| Red Hat Container Native Virtualization 4.17 | Fixed | RHSA-2026:93951 |
| Red Hat Developer Hub 1.10 | Fixed | RHSA-2026:36754 |
| Red Hat Developer Hub 1.9 | Fixed | RHSA-2026:33574 |
| Red Hat Discovery 2 | Fixed | RHSA-2026:29197 |
| Red Hat Migration Toolkit 1.8 | Fixed | RHSA-2026:41928 |
| Red Hat OpenShift Container Platform 4.12 | Fixed | RHSA-2026:70647 |
| Red Hat OpenShift Container Platform 4.13 | Fixed | RHSA-2026:65840 |
| Red Hat OpenShift Container Platform 4.14 | Fixed | RHSA-2026:62410 |
| Red Hat OpenShift Container Platform 4.15 | Fixed | RHSA-2026:56912 |
| Red Hat OpenShift Container Platform 4.16 | Fixed | RHSA-2026:56854 |
| Red Hat OpenShift Container Platform 4.17 | Fixed | RHSA-2026:60023 |
| Red Hat OpenShift Container Platform 4.18 | Fixed | RHSA-2026:48699 |
| Red Hat OpenShift Container Platform 4.19 | Fixed | RHSA-2026:40765 |
| Red Hat OpenShift Container Platform 4.20 | Fixed | RHSA-2026:34791, RHSA-2026:44263 |
| Red Hat OpenShift Container Platform 4.21 | Fixed | RHSA-2026:29834, RHSA-2026:44267 |
| Red Hat OpenShift Container Platform 4.22 | Fixed | RHSA-2026:29795, RHSA-2026:44237 |
| Red Hat OpenShift Dev Spaces 3.30 | Fixed | RHSA-2026:62260 |
| Red Hat OpenShift Service Mesh 2.6 | Fixed | RHSA-2026:26072 |
| Red Hat OpenShift Service Mesh 3.0 | Fixed | RHSA-2026:26080 |
| Red Hat OpenShift Service Mesh 3.1 | Fixed | RHSA-2026:26077 |
| Red Hat OpenShift Service Mesh 3.2 | Fixed | RHSA-2026:26079 |
| Red Hat OpenShift Service Mesh 3.3 | Fixed | RHSA-2026:26090 |
| Red Hat Quay 3.10 | Fixed | RHSA-2026:33683 |
| Red Hat Quay 3.12 | Fixed | RHSA-2026:30076 |
| Red Hat Quay 3.14 | Fixed | RHSA-2026:70267 |
| Red Hat Quay 3.15 | Fixed | RHSA-2026:42796 |
| Red Hat Quay 3.16 | Fixed | RHSA-2026:41066 |
| Red Hat Quay 3.17 | Fixed | RHSA-2026:54395 |
| Red Hat Quay 3.9 | Fixed | RHSA-2026:28571 |
| Red Hat Satellite 6.18 | Fixed | RHSA-2026:26225 |
Not affected: 40 products
- Cluster Observability Operator 1.5
- Cryostat 4
- Cryostat 4 on RHEL 9
- Gatekeeper 3
- Node HealthCheck Operator
- OpenShift Pipelines
- OpenShift Service Mesh 3
- Red Hat AMQ Broker 7
- Red Hat Ansible Automation Platform 2
- Red Hat Data Grid 8
- Red Hat Developer Hub 1.10
- Red Hat Developer Hub 1.9
- Red Hat Discovery 2
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat Migration Toolkit 1.8
- Red Hat OpenShift AI (RHOAI)
- Red Hat OpenShift Container Platform 4.12
- Red Hat OpenShift Container Platform 4.13
- Red Hat OpenShift Container Platform 4.14
- Red Hat OpenShift Container Platform 4.15
- Red Hat OpenShift Container Platform 4.16
- Red Hat OpenShift Container Platform 4.17
- Red Hat OpenShift Container Platform 4.18
- Red Hat OpenShift Container Platform 4.19
- Red Hat OpenShift Container Platform 4.20
- Red Hat OpenShift Container Platform 4.21
- Red Hat OpenShift Container Platform 4.22
- Red Hat OpenShift Dev Spaces 3.30
- Red Hat OpenShift Service Mesh 3.3
- Red Hat Quay 3.10
- Red Hat Quay 3.12
- Red Hat Quay 3.14
- Red Hat Quay 3.15
- Red Hat Quay 3.16
- Red Hat Quay 3.17
- Red Hat Quay 3.9
- Red Hat Trusted Artifact Signer
- Red Hat build of Apache Camel - HawtIO 4
Timeline
- 2026-10-02 Threatist record created from CVE-2026-9277
- 2026-10-03 Alias added: GHSA-w7jw-789q-3m8p
- 2026-10-30 Affected versions changed · Red Hat
- 2026-11-03 Fix available: RHSA-2026:93951 · Red Hat
- 2026-11-03 Fix available: Red Hat Container Native Virtualization 4.17 · Red Hat
- 2026-11-05 Fix available: Cluster Observability Operator 1.5 · Red Hat
References
Sources
- CVE-2026-9277 · CVE Program
- CVE-2026-9277 · NVD
- FIRST EPSS
- GHSA-w7jw-789q-3m8p · GitHub Advisory Database · CC BY 4.0
- CVE-2026-9277 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences