UBUNTU-CVE-2026-9277

Source
https://ubuntu.com/security/CVE-2026-9277
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-9277.json
JSON Data
https://api.test.osv.dev/v1/vulns/UBUNTU-CVE-2026-9277
Upstream
Downstream
Related
Published
2026-05-22T14:16:00Z
Modified
2026-06-30T18:16:04.899657629Z
Severity
  • 8.1 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
  • 8.1 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
  • 9.2 (Critical) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

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.

References

Affected packages

Ubuntu:Pro:18.04:LTS / node-shell-quote

Package

Name
node-shell-quote
Purl
pkg:deb/ubuntu/node-shell-quote?arch=source&distro=esm-apps%2Fbionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.6.1+20160617-git72fb5a8ce29b-1ubuntu0.1~esm1

Affected versions

1.*
1.6.1+20160617-git72fb5a8ce29b-1

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "binaries": [
        {
            "binary_version": "1.6.1+20160617-git72fb5a8ce29b-1ubuntu0.1~esm1",
            "binary_name": "node-shell-quote"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-9277.json"

Ubuntu:Pro:22.04:LTS / node-shell-quote

Package

Name
node-shell-quote
Purl
pkg:deb/ubuntu/node-shell-quote?arch=source&distro=esm-apps%2Fjammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.7.3+~1.7.1-1ubuntu0.1~esm1

Affected versions

1.*
1.7.3+~1.7.1-1

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "binaries": [
        {
            "binary_version": "1.7.3+~1.7.1-1ubuntu0.1~esm1",
            "binary_name": "node-shell-quote"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-9277.json"

Ubuntu:24.04:LTS / node-shell-quote

Package

Name
node-shell-quote
Purl
pkg:deb/ubuntu/node-shell-quote?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.7.4+~1.7.1-1ubuntu0.24.04.1

Affected versions

1.*
1.7.4+~1.7.1-1

Ecosystem specific

{
    "availability": "No subscription required",
    "binaries": [
        {
            "binary_version": "1.7.4+~1.7.1-1ubuntu0.24.04.1",
            "binary_name": "node-shell-quote"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-9277.json"

Ubuntu:25.10 / node-shell-quote

Package

Name
node-shell-quote
Purl
pkg:deb/ubuntu/node-shell-quote?arch=source&distro=questing

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.7.4+~1.7.1-1ubuntu0.25.10.1

Affected versions

1.*
1.7.4+~1.7.1-1

Ecosystem specific

{
    "availability": "No subscription required",
    "binaries": [
        {
            "binary_version": "1.7.4+~1.7.1-1ubuntu0.25.10.1",
            "binary_name": "node-shell-quote"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-9277.json"

Ubuntu:Pro:26.04:LTS / node-shell-quote

Package

Name
node-shell-quote
Purl
pkg:deb/ubuntu/node-shell-quote?arch=source&distro=esm-apps%2Fresolute

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.8.3+~1.7.5-1ubuntu0.1~esm1

Affected versions

1.*
1.7.4+~1.7.1-1
1.8.3+~1.7.5-1

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "binaries": [
        {
            "binary_version": "1.8.3+~1.7.5-1ubuntu0.1~esm1",
            "binary_name": "node-shell-quote"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-9277.json"