Skip to content
Heist/ feed
Back to feed
High

node-shell-quote — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-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.

Products
node-shell-quote
Affected versions
1.10.0-1, 1.6.1+20160617-git72fb5a8ce29b-1, 1.6.1+20160617-git72fb5a8ce29b-1ubuntu0.1~esm1, 1.7.3+~1.7.1-1, 1.7.3+~1.7.1-1ubuntu0.1~esm1, 1.7.4+~1.7.1-1, 1.7.4+~1.7.1-1ubuntu0.24.04.1, 1.7.4+~1.7.1-1ubuntu0.25.10.1, 1.8.3+~1.7.5-1, 1.8.3+~1.7.5-1ubuntu0.1~esm1, 1.9.0+~1.7.5-1
Fixed versions
Not specified
CVEs
CVE-2026-13311
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 02:40 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-13311

core-osv · Original source

Published 25 Jun 2026, 05:16 UTC

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.

osv:UBUNTU-CVE-2026-13311

node-shell-quote

Fixed versions: Not specified

node-shell-quote

Fixed versions: Not specified

node-shell-quote

Fixed versions: Not specified

node-shell-quote

Fixed versions: Not specified

node-shell-quote

Fixed versions: Not specified

node-shell-quote

Fixed versions: Not specified

Complete source record
{
  "id": "261745f8128f45b9e26dd3ed3f3abc972104a0c65b9f48538cf9b9c8bcf97d21",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-13311",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-13311",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2026-13311",
    "products": [
      {
        "name": {
          "value": "node-shell-quote",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.6.1+20160617-git72fb5a8ce29b-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.6.1+20160617-git72fb5a8ce29b-1ubuntu0.1~esm1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-shell-quote",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.7.3+~1.7.1-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.7.3+~1.7.1-1ubuntu0.1~esm1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-shell-quote",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.7.4+~1.7.1-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.7.4+~1.7.1-1ubuntu0.24.04.1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-shell-quote",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.7.4+~1.7.1-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1.7.4+~1.7.1-1ubuntu0.25.10.1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-shell-quote",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.8.3+~1.7.5-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1.9.0+~1.7.5-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1.10.0-1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-shell-quote",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.7.4+~1.7.1-1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "1.8.3+~1.7.5-1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "1.8.3+~1.7.5-1ubuntu0.1~esm1",
            "evidence": "/affected/5/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2026-13311",
      "aliases": [
        "UBUNTU-CVE-2026-13311"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        },
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-shell-quote",
            "purl": "pkg:deb/ubuntu/node-shell-quote?arch=source&distro=esm-apps%2Fbionic",
            "ecosystem": "Ubuntu:Pro:18.04:LTS"
          },
          "versions": [
            "1.6.1+20160617-git72fb5a8ce29b-1",
            "1.6.1+20160617-git72fb5a8ce29b-1ubuntu0.1~esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-13311.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-shell-quote",
                "binary_version": "1.6.1+20160617-git72fb5a8ce29b-1ubuntu0.1~esm1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-shell-quote",
            "purl": "pkg:deb/ubuntu/node-shell-quote?arch=source&distro=esm-apps%2Fjammy",
            "ecosystem": "Ubuntu:Pro:22.04:LTS"
          },
          "versions": [
            "1.7.3+~1.7.1-1",
            "1.7.3+~1.7.1-1ubuntu0.1~esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-13311.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-shell-quote",
                "binary_version": "1.7.3+~1.7.1-1ubuntu0.1~esm1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-shell-quote",
            "purl": "pkg:deb/ubuntu/node-shell-quote?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "1.7.4+~1.7.1-1",
            "1.7.4+~1.7.1-1ubuntu0.24.04.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-13311.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-shell-quote",
                "binary_version": "1.7.4+~1.7.1-1ubuntu0.24.04.1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-shell-quote",
            "purl": "pkg:deb/ubuntu/node-shell-quote?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "1.7.4+~1.7.1-1",
            "1.7.4+~1.7.1-1ubuntu0.25.10.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-13311.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-shell-quote",
                "binary_version": "1.7.4+~1.7.1-1ubuntu0.25.10.1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-shell-quote",
            "purl": "pkg:deb/ubuntu/node-shell-quote?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "1.8.3+~1.7.5-1",
            "1.9.0+~1.7.5-1",
            "1.10.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-13311.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-shell-quote",
                "binary_version": "1.10.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-shell-quote",
            "purl": "pkg:deb/ubuntu/node-shell-quote?arch=source&distro=esm-apps%2Fresolute",
            "ecosystem": "Ubuntu:Pro:26.04:LTS"
          },
          "versions": [
            "1.7.4+~1.7.1-1",
            "1.8.3+~1.7.5-1",
            "1.8.3+~1.7.5-1ubuntu0.1~esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-13311.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-shell-quote",
                "binary_version": "1.8.3+~1.7.5-1ubuntu0.1~esm1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:58:45.484751980Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-13311"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-13311",
        "https://www.cve.org/CVERecord?id=CVE-2026-13311",
        "https://github.com/ljharb/shell-quote/security/advisories/GHSA-395f-4hp3-45gv",
        "https://www.npmjs.com/package/shell-quote"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-13311",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/1/score"
  },
  "source_id": "core-osv",
  "document_id": 359009,
  "published_at": "2026-06-25T05:16:00+00:00"
}