Skip to content
Heist/ feed
UnratedFix available

DEBIAN-CVE-2026-9277

Type: advisorySource: OSV1 source record

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`.

Announced Source revision 1
Original source ↗

DEBIAN-CVE-2026-9277

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:DEBIAN-CVE-2026-9277

node-shell-quote

Source reference: /affected/0/package/name

Affected versions
1.7.4+~1.7.1-1

Source reference: /affected/0/versions

Fixed versions
1.7.4+~1.7.1-1+deb12u1

Source reference: /affected/0/ranges

Prerequisites
Not stated in this record

node-shell-quote

Source reference: /affected/1/package/name

Affected versions
1.7.4+~1.7.1-1

Source reference: /affected/1/versions

Fixed versions
1.7.4+~1.7.1-1+deb13u1

Source reference: /affected/1/ranges

Prerequisites
Not stated in this record

node-shell-quote

Source reference: /affected/2/package/name

Affected versions
1.7.4+~1.7.1-1

Source reference: /affected/2/versions

1.7.4+~1.7.1-2

Source reference: /affected/2/versions

1.8.3+~1.7.5-1

Source reference: /affected/2/versions

Fixed versions
1.8.4+~1.7.5-1

Source reference: /affected/2/ranges

Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "ranges": [
      {
        "type": "ECOSYSTEM",
        "events": [
          {
            "introduced": "0"
          },
          {
            "fixed": "1.7.4+~1.7.1-1+deb12u1"
          }
        ]
      }
    ],
    "package": {
      "name": "node-shell-quote",
      "purl": "pkg:deb/debian/node-shell-quote?arch=source&distro=bookworm",
      "ecosystem": "Debian:12"
    },
    "versions": [
      "1.7.4+~1.7.1-1"
    ],
    "database_specific": {
      "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-9277.json"
    },
    "ecosystem_specific": {
      "urgency": "not yet assigned"
    }
  },
  {
    "ranges": [
      {
        "type": "ECOSYSTEM",
        "events": [
          {
            "introduced": "0"
          },
          {
            "fixed": "1.7.4+~1.7.1-1+deb13u1"
          }
        ]
      }
    ],
    "package": {
      "name": "node-shell-quote",
      "purl": "pkg:deb/debian/node-shell-quote?arch=source&distro=trixie",
      "ecosystem": "Debian:13"
    },
    "versions": [
      "1.7.4+~1.7.1-1"
    ],
    "database_specific": {
      "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-9277.json"
    },
    "ecosystem_specific": {
      "urgency": "not yet assigned"
    }
  },
  {
    "ranges": [
      {
        "type": "ECOSYSTEM",
        "events": [
          {
            "introduced": "0"
          },
          {
            "fixed": "1.8.4+~1.7.5-1"
          }
        ]
      }
    ],
    "package": {
      "name": "node-shell-quote",
      "purl": "pkg:deb/debian/node-shell-quote?arch=source&distro=forky",
      "ecosystem": "Debian:14"
    },
    "versions": [
      "1.7.4+~1.7.1-1",
      "1.7.4+~1.7.1-2",
      "1.8.3+~1.7.5-1"
    ],
    "database_specific": {
      "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-9277.json"
    },
    "ecosystem_specific": {
      "urgency": "not yet assigned"
    }
  }
]

Publisher severity

No explicit severity was provided.

Event
#58415 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement