Not a U.S. government website. NDD is an independent vulnerability database by Volerion and is not affiliated with or endorsed by NIST or NVD.
VOLERION
Volerion Security Research

NOT DEFERRED DATABASE

VULNERABILITIES

CVE-2026-9277 Details

ANALYZED


This CVE record has been analyzed and enriched by NVDAPI.com as an independent party.

Description

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

Metrics

CVSS 3.x Severity and Vector Strings:

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.

URLSource(s)Tag(s)
https://access.redhat.com/errata/RHSA-2026:26072 redhat-SADP
https://access.redhat.com/errata/RHSA-2026:26077 redhat-SADP
https://access.redhat.com/errata/RHSA-2026:26079 redhat-SADP
https://access.redhat.com/errata/RHSA-2026:26080 redhat-SADP
https://access.redhat.com/errata/RHSA-2026:26090 redhat-SADP

see all 40 references

Weakness Enumeration

CWE-IDCWE NameSource
CWE-77Improper Neutralization of Special Elements used in a Command ('Command Injection')harborist
CWE-78Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')redhat-SADP
CWE-78Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')harborist

Affected Products

ProductVersions
shell-quote
<= 1.8.3 (semver)

CPE

  • cpe:2.3:a:shell-quote_project:shell-quote:*:*:*:*:*:node.js:*:*

Remediation

  • Upgrade: 1.8.4moderate effort
  • Workaround:low effort

    Do not construct object tokens with attacker-controlled values. Validate the '.op' field against the parser's operator set.

Change History

44 change records found show changes


QUICK INFO

CVE Dictionary Entry:
CVE-2026-9277
NVD Published Date:
May 22, 2026
NVD Last Modified:
Sep 14, 2026
Source:
harborist
CVE-2026-9277 Details - Not Deferred