DLA-4901-1
Active Unknownnode-shell-quote - security update
Related CVEs
CVE identifiers linked by this publisher.
Publisher relationship details 2 records
Shared by all 2 CVE relationships
Exact relationship value
advisory_listExact field value
DSA/DLA structured-text list| CVE | Publisher evidence |
|---|---|
| CVE-2026-102422 | https://security-tracker.debian.org/tracker/CVE-2026-102422 |
| CVE-2026-13311 | https://security-tracker.debian.org/tracker/CVE-2026-13311 |
Description
CVE-2026-102422: shell-quote's `quote()` function emits a `{ comment }` token as `#` followed by its text, which comments out the rest of the shell line, including the opening quote of any later string token. A line terminator (\n, \r, U+2028, U+2029) in that later string therefore ends the comment, and the rest of the string is parsed as shell input:
Read full publisher description 1611 characters
CVE-2026-102422: shell-quote's `quote()` function emits a `{ comment }` token as `#` followed by its text, which comments out the rest of the shell line, including the opening quote of any later string token. A line terminator (\n, \r, U+2028, U+2029) in that later string therefore ends the comment, and the rest of the string is parsed as shell input: `quote(['echo', 'ok', { comment: 'x' }, 'a\nid;#'])` runs `id` in sh, bash, dash, ksh and zsh. `parse()` emits a comment token for a `#` in the middle of a word (for example `http://example.com/#frag`), so callers that combine `parse()` output with another untrusted string, such as `quote(parse(untrustedCommand).concat(untrustedArg))`, are affected. The fix for CVE-2026-9277 rejected line terminators in the comment's own text, but not in the tokens after it. Fixed in 1.11.0: `quote()` throws a `TypeError` when a string after a `{ comment }` token contains a line terminator. CVE-2026-13311: shell-quote prior to 1.8.5 finalizes parsed tokens in parse() using Array.prototype.concat as a reduce accumulator, which reallocates and copies the entire growing array on every iteration. As a result parse() runs in O(n^2) time relative to the number of input tokens. An attacker who can supply an attacker-controlled string to any code path that calls parse() (no shell metacharacters are required; plain space-separated words suffice) can block the single-threaded Node.js event loop for an extended period with a small input, resulting in a denial of service. There is no code execution or data disclosure; impact is to availability only. Fixed in 1.8.5.
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+deb12u2
Affected ranges and events
-
ECOSYSTEM
- Fixed at 1.7.4+~1.7.1-1+deb12u2
-
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
3- DLA-4901-1 https://www.debian.org/lts/security/2026/dla-4901
- CVE-2026-102422 https://security-tracker.debian.org/tracker/CVE-2026-102422
- CVE-2026-13311 https://security-tracker.debian.org/tracker/CVE-2026-13311
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/DLA/list | Unknown | 3ab95597a0de06decb027042f816a18d59bc4603966dc77ddf5d60d85c9b78b8 | debian-dsa-dla-tracker/1 | Unknown |