VDB

CVE-2026-9277

CVE-2026-9277 PUBLISHED CVSS 8.1 HIGH

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.

PackageEcosystemFixed in
shell-quotenpm1.8.4
tileserver-glChainguard5.6.0-r5
tileserver-gl-fipsChainguard5.6.0-r4
gitlab-rails-ce-fips-18.9Chainguard18.9.8-r8
langfuse-2Chainguard2.95.12-r28
arangodb-3.12Chainguard3.12.9.4-r2
gitlab-rails-ce-fips-18.1Chainguard18.1.6-r68
gitlab-rails-ce-19.1Chainguard19.1.2-r4
gitlab-rails-ce-fips-19.0Chainguard19.0.4-r4
argo-workflows-3.6Chainguard3.6.19-r7
gemini-cliChainguard0.49.0-r4
gitlab-rails-ce-fips-18.11Chainguard18.11.7-r2

8 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
8.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
shell-quote1.1.0
shell-quote1.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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›