Back to CVE records
High 8.1Published May 22, 2026

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.

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

Affected products
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
from 1785854226 not affected
CISA ADP
from 1783448184 not affected
CISA ADP
from 1782166952 not affected
CISA ADP
from 1783690532 not affected
CISA ADP
from 1788218669 not affected
CISA ADP
from 1787762793 not affected
CISA ADP
from 1780907585 not affected
CISA ADP
from 1782487717 not affected
CISA ADP
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
7
CISA ADP
Red Hat Red Hat Ansible Automation Platform 2
redhat:ansible_automation_platform
2
CISA ADP
4
CISA ADP
1
CISA ADP
Red Hat Red Hat Data Grid 8
redhat:jboss_data_grid
8
CISA ADP
10
CISA ADP
3
CISA ADP
Red Hat Red Hat Fuse 7
redhat:jboss_fuse
7
CISA ADP
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

  • vendor-advisory
  • patch
  • product
  • product

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.

Your cookie choices
We use essential cookies to run this site, and, only with your consent, an advertising cookie from Google to measure whether our ads lead to sign-ups and subscriptions. See our for details.