{
  "id": "CVE-2026-13311",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-13311",
  "published_at": "2026-06-25T04:48:36.351Z",
  "title": "shell-quote parse() is quadratic in token count, enabling denial of service",
  "vendor": "ljharb",
  "product": "shell-quote",
  "cvss": {
    "score": 8.7,
    "source": "cna",
    "vector": "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"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "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.",
  "cwe": "CWE-407",
  "cpes": [
    "cpe:2.3:a:shell-quote_project:shell-quote:*:*:*:*:*:node.js:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.7
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "ljharb",
        "product": "shell-quote",
        "ranges": [
          "\u003c= 1.8.4"
        ],
        "fixed_in": null
      },
      {
        "vendor": "",
        "product": "shell-quote",
        "ranges": [
          "\u003c 1.9.0"
        ],
        "fixed_in": [
          "1.9.0"
        ],
        "ecosystem": "npm",
        "advisory": "GHSA-395f-4hp3-45gv"
      }
    ],
    "upgrade": [
      "Upgrade shell-quote to 1.9.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/ljharb/shell-quote/security/advisories/GHSA-395f-4hp3-45gv"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
