CVE-2026-9277
Fixed in a distro release EPSS <1%CVSS 8.1
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`.
Products: Red Hat Cryostat 4 on RHEL 9, Red Hat Cluster Observability Operator 1.5.0, Red Hat Ansible Automation Platform 2.1, Red Hat Developer Hub 1.10, Red Hat Developer Hub 1.9, Red Hat Discovery 2, Red Hat Migration Toolkit 1.8, 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 2.6, Red Hat OpenShift Service Mesh 3.0, Red Hat OpenShift Service Mesh 3.1, Red Hat OpenShift Service Mesh 3.2, Red Hat OpenShift Service Mesh 3.3, Red Hat Quay 3.10, Red Hat Quay 3.12, Red Hat Quay 3.15, Red Hat Quay 3.16, Red Hat Quay 3.9, Red Hat Satellite 6.18, Red Hat Cryostat 4, Red Hat Gatekeeper 3, Red Hat Node HealthCheck Operator, Red Hat OpenShift Lightspeed, Red Hat OpenShift Pipelines, Red Hat OpenShift Service Mesh 3, Red Hat AMQ Broker 7, Red Hat Ansible Automation Platform 2, Red Hat build of Apache Camel - HawtIO 4, Red Hat Build of Podman Desktop, Red Hat Build of Podman Desktop - Tech Preview, Red Hat Data Grid 8, Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9, Red Hat Enterprise Linux AI (RHEL AI) 3, Red Hat Fuse 7, Red Hat OpenShift AI (RHOAI), Red Hat OpenShift Virtualization 4, Red Hat Trusted Artifact Signer
Fixed upstream
| Ecosystem | Package | Fixed in |
|---|---|---|
| npm | shell-quote | 1.8.4 |
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| Chainguard | arangodb-3.11 | 3.11.14.4-r9 |
| Chainguard | arangodb-3.12 | 3.12.9.4-r2 |
| Chainguard | argo-workflows-ui-3.6 | 3.6.19-r7 |
| Chainguard | code-server | 4.123.0-r2 |
| Chainguard | gemini-cli | 0.49.0-r4 |
| Chainguard | gitlab-rails-ce-18.1 | 18.1.6-r20 |
| Chainguard | gitlab-rails-ce-18.10 | no fix |
| Chainguard | gitlab-rails-ce-18.11 | 18.11.6-r8 |
| Chainguard | gitlab-rails-ce-18.5 | no fix |
| Chainguard | gitlab-rails-ce-18.6 | no fix |
| Chainguard | gitlab-rails-ce-18.7 | no fix |
| Chainguard | gitlab-rails-ce-18.8 | no fix |
| Chainguard | gitlab-rails-ce-18.9 | no fix |
| Chainguard | gitlab-rails-ce-19.0 | 19.0.4-r4 |
| Chainguard | gitlab-rails-ce-19.1 | 19.1.2-r4 |
| Chainguard | gitlab-rails-ce-fips-18.1 | 18.1.6-r68 |
| Chainguard | gitlab-rails-ce-fips-18.10 | 18.10.8-r8 |
| Chainguard | gitlab-rails-ce-fips-18.11 | 18.11.7-r2 |
| Chainguard | gitlab-rails-ce-fips-18.5 | no fix |
| Chainguard | gitlab-rails-ce-fips-18.6 | no fix |
| Chainguard | gitlab-rails-ce-fips-18.7 | no fix |
| Chainguard | gitlab-rails-ce-fips-18.8 | no fix |
| Chainguard | gitlab-rails-ce-fips-18.9 | 18.9.8-r8 |
| Chainguard | gitlab-rails-ce-fips-19.0 | 19.0.4-r4 |
| Chainguard | gitlab-rails-ce-fips-19.1 | 19.1.2-r5 |
| Chainguard | langfuse-2-worker | 2.95.12-r28 |
| Chainguard | py3.10-captum | 0.9.0-r1 |
| Chainguard | py3.11-captum | 0.9.0-r1 |
| Chainguard | py3.12-captum | 0.9.0-r1 |
| Chainguard | py3.13-captum | 0.9.0-r1 |
| Chainguard | tileserver-gl | 5.6.0-r5 |
| Chainguard | tileserver-gl-fips | 5.6.0-r4 |
| Debian 12 | node-shell-quote | 1.7.4+~1.7.1-1+deb12u1 |
| Debian 13 | node-shell-quote | 1.7.4+~1.7.1-1+deb13u1 |
| Debian 14 | node-shell-quote | 1.8.4+~1.7.5-1 |
| Ubuntu 24.04 LTS | node-shell-quote | 1.7.4+~1.7.1-1ubuntu0.24.04.1 |
| Ubuntu 25.10 | node-shell-quote | 1.7.4+~1.7.1-1ubuntu0.25.10.1 |
| Ubuntu 26.10 | node-shell-quote | no fix |
| Ubuntu Pro 18.04 LTS | node-shell-quote | 1.6.1+20160617-git72fb5a8ce29b-1ubuntu0.1~esm1 |
| Ubuntu Pro 22.04 LTS | node-shell-quote | 1.7.3+~1.7.1-1ubuntu0.1~esm1 |
| Ubuntu Pro 26.04 LTS | node-shell-quote | 1.8.3+~1.7.5-1ubuntu0.1~esm1 |
| Wolfi | code-server | 4.123.0-r2 |
| Wolfi | tileserver-gl | 5.6.0-r5 |
| openSUSE Leap 16.0 | agama-web-ui | 17+612.d8bf69336-160000.11.1 |
| openSUSE Tumbleweed | agama-web-ui | 21+360.16caae772-44.1 |
| openSUSE Tumbleweed | python-pytest-html | 4.2.0-2.1 |