DSA-6300-1
Active Unknownnode-shell-quote - security update
Related CVEs
CVE identifiers linked by this publisher.
Publisher relationship details 1 records
| CVE | Relationship | Publisher CVE field | Publisher evidence |
|---|---|---|---|
| CVE-2026-9277 | Listed by advisoryExact relationship valueadvisory_list | Dsa/dla Structured Text ListExact field valueDSA/DLA structured-text list | https://security-tracker.debian.org/tracker/CVE-2026-9277 |
Description
CVE-2026-9277: 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
Read full publisher description 1055 characters
CVE-2026-9277: 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`.
No solution guidance was provided.
Affected packages
Each item is one publisher package occurrence. Shared details are shown once; differences stay with the occurrence.
Shared package data
Applies to this occurrence- Package role
- Source package
- Ecosystem
- Debian:bookworm
- Fixed version
- 1.7.4+~1.7.1-1+deb12u1
Affected ranges and events
-
ECOSYSTEM
- Fixed at 1.7.4+~1.7.1-1+deb12u1
-
1node-shell-quoteSource package
CVSS assessments
Publisher supplied scores and vectors; these do not replace the advisory severity above.
No CVSS assessments were provided.
Publisher references
2- DSA-6300-1 https://www.debian.org/security/2026/dsa-6300
- CVE-2026-9277 https://security-tracker.debian.org/tracker/CVE-2026-9277
Provenance
- Schema version
- Unknown
- Parser version
- debian-dsa-dla-tracker/1
- Attribution
- Debian Security Team
- Severity origin
- publisher
| Kind | Locator | Source commit | Document hash | Parser | Fetched |
|---|---|---|---|---|---|
| structured_advisory_list | https://salsa.debian.org/security-tracker-team/security-tracker/-/raw/master/data/DSA/list | Unknown | 1c95ca7dc1ad637af591bce2d6a0dd7e0f755d220092aa23531b9b2ea52f467e | debian-dsa-dla-tracker/1 | Unknown |