---
title: "CVE-2026-9277\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2026-9277?format=md
keywords: index, follow
---

# CVE-2026-9277

Publication date 22 May 2026

Last updated 9 June 2026

---

Ubuntu priority

**Medium**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

## Cvss 3 Severity Score

**8.1 · High**

[Score breakdown](https://ubuntu.com/security/CVE-2026-9277?format=md#impact-score)

Toggle side navigation

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

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| node-shell-quote | 26.04 LTS resolute | Fixed 1.8.3+~1.7.5-1ubuntu0.1~esm1  Ubuntu Pro |
| 25.10 questing | Fixed 1.7.4+~1.7.1-1ubuntu0.25.10.1 |
| 24.04 LTS noble | Fixed 1.7.4+~1.7.1-1ubuntu0.24.04.1 |
| 22.04 LTS jammy | Fixed 1.7.3+~1.7.1-1ubuntu0.1~esm1  Ubuntu Pro |
| 18.04 LTS bionic | Fixed 1.6.1+20160617-git72fb5a8ce29b-1ubuntu0.1~esm1  Ubuntu Pro |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)
* [Patch details](https://ubuntu.com/security/CVE-2026-9277?format=md#patch-details)

### Get expanded security coverage with Ubuntu Pro

Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.

[Get Ubuntu Pro](https://ubuntu.com/pro)
[30-day free trial](https://ubuntu.com/pro/free-trial)

### Patch details

For informational purposes only. We recommend not to cherry-pick updates. [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)

| Package | Patch details |
| --- | --- |
| node-shell-quote | * Upstream:   [4378a6e](https://github.com/ljharb/shell-quote/commit/4378a6e613db5948168684864e49b42b83134d2d) |

## Severity score breakdown

CVSS version:

CVSS v4.0

[CVSS v4.0](https://ubuntu.com/security/CVE-2026-9277?format=md)
[CVSS v3.0](https://ubuntu.com/security/CVE-2026-9277?format=md)

**Base score**

9.2 · Critical

* Base metrics

  | Parameter | Value |
  | --- | --- |
  | Attack vector | Network |
  | Attack complexity | Low |
  | Attack requirements | Present |
  | Privileges required | None |
  | User interaction | None |
  | Vulnerable system - Confidentiality impact | High |
  | Vulnerable system - Integrity impact | High |
  | Vulnerable system - Availability impact | High |
  | Subsequent system - Confidentiality impact | None |
  | Subsequent system - Integrity impact | None |
  | Subsequent system - Availability impact | None |
* Scores

  | Parameter | Value |
  | --- | --- |
  | Base score | 9.2 · Critical |
  | Base + Threat score | - |
  | Base + Environmental score | - |
  | Base + Threat + Environmental score | - |

**Vector:** 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

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-9277)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2026-9277)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2026-9277)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2026-9277)

### Related Ubuntu Security Notices (USN)

+ [USN-8410-1](https://usn.ubuntu.com/USN-8410-1)
+ shell-quote vulnerability
+ 9 June 2026

### Other references

* <https://www.cve.org/CVERecord?id=CVE-2026-9277>
* <https://github.com/ljharb/shell-quote/security/advisories/GHSA-w7jw-789q-3m8p>
* <https://github.com/ljharb/shell-quote>
* <https://github.com/ljharb/shell-quote/commit/1518179>
* <https://www.npmjs.com/package/shell-quote>
* <http://www.openwall.com/lists/oss-security/2026/05/23/2>
* <https://github.com/ljharb/shell-quote/commit/4378a6e613db5948168684864e49b42b83134d2d>
