CVE-2026-9277
Reported by harborist · Published May 22, 2026
shell-quote is fixed in 1.8.4 (npm)
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`.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| shell-quote | npm | 1.8.4 |
| tileserver-gl | Chainguard | 5.6.0-r5 |
| tileserver-gl-fips | Chainguard | 5.6.0-r4 |
| gitlab-rails-ce-fips-18.9 | Chainguard | 18.9.8-r8 |
| langfuse-2 | Chainguard | 2.95.12-r28 |
| arangodb-3.12 | Chainguard | 3.12.9.4-r2 |
| gitlab-rails-ce-fips-18.1 | Chainguard | 18.1.6-r68 |
| gitlab-rails-ce-19.1 | Chainguard | 19.1.2-r4 |
| gitlab-rails-ce-fips-19.0 | Chainguard | 19.0.4-r4 |
| argo-workflows-3.6 | Chainguard | 3.6.19-r7 |
| gemini-cli | Chainguard | 0.49.0-r4 |
| gitlab-rails-ce-fips-18.11 | Chainguard | 18.11.7-r2 |
8 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| shell-quote | 1.1.0 | |
| shell-quote | 1.1.0 |
Timeline
- May 22, 2026 CVE Published
- May 22, 2026 PoC Published
- May 23, 2026 EPSS Score (30 in total, the first dated here)
- Jun 12, 2026 Security Advisory (33 in total, the first dated here)
- Jun 23, 2026 Distribution Patch (32 in total, the first dated here)
- Aug 19, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-9277
vulnetix vdb fixes CVE-2026-9277
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-9277/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- GHSA-w7jw-789q-3m8p vendor-advisory
- Fix commit patch
- product
- product