Skip to content
Fencer Vulns
high 7.5

CVE-2026-13311 json

shell-quote parse() is quadratic in token count, enabling denial of service

published 2026-06-25 4 mo ago modified 2026-10-25 14 d ago also GHSA-395f-4hp3-45gv , EUVD-2026-39180

cvss
7.5
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.4%
EPSS 0.4% chance of exploitation in 30 days, percentile 30%
public exploits
0
none known

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.

Patch / fix

  • npm shell-quote 1.9.0
  • shell-quote_project shell-quote 1.9.0
  • node-shell-quote Debian 13 1.7.4+~1.7.1-1+deb13u2
  • node-shell-quote Debian 14 1.9.0+~1.7.5-1

debian advisories DEBIAN-CVE-2026-13311

  • agama-web-ui openSUSE Tumbleweed 23+75.1a877fb50-50.1
  • agama-web-ui openSUSE Leap 16.0 17+673.b97ba64d6-160000.12.1
  • python-pytest-html openSUSE Leap 16.0 4.1.1-bp160.3.1
  • heroic-games-launcher openSUSE Tumbleweed 2.22.0-3.1
  • python-pytest-html openSUSE Tumbleweed 4.2.0-3.1

opensuse advisories openSUSE-SU-2026:11472-1openSUSE-SU-2026:21448-1openSUSE-SU-2026:21176-1openSUSE-SU-2026:11145-1openSUSE-SU-2026:11149-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2026-13311 updated cvss 6.5

shell-quote: shell-quote/parse: shell-quote: Denial of Service due to inefficient input parsing

  • Red Hat Cryostat 4 shell-quote, cryostat-openshift-console-plugin-npm Red Hat Gatekeeper 3 gatekeeper/gatekeeper-rhel9 Red Hat Migration Toolkit for Containers rhmtc/openshift-migration-ui-rhel8 Red Hat Node HealthCheck Operator workload-availability/node-healthcheck-rhel9-operator, workload-availability/node-healthcheck-operator-bundle, workload-availability/node-healthcheck-must-gather-rhel9 Red Hat OpenShift Lightspeed openshift-lightspeed/lightspeed-console-plugin-rhel9, openshift-lightspeed/lightspeed-console-plugin-419-rhel9, openshift-lightspeed/lightspeed-console-plugin-pf5-rhel9 Red Hat OpenShift Pipelines openshift-pipelines/pipelines-hub-ui-rhel8, openshift-pipelines/pipelines-hub-ui-rhel9, openshift-pipelines/pipelines-console-plugin-rhel8, openshift-pipelines/pipelines-console-plugin-rhel9, openshift-pipelines/pipelines-console-plugin-pf5-rhel9
    +9 more products
    Red Hat OpenShift Service Mesh 2 openshift-service-mesh/kiali-rhel8, openshift-service-mesh/kiali-ossmc-rhel8 Red Hat OpenShift Service Mesh 3 openshift-service-mesh/kiali-rhel9, openshift-service-mesh/kiali-ossmc-rhel9, openshift-service-mesh/kiali-rhel9-operator, openshift-service-mesh/kiali-operator-bundle Red Hat AMQ Broker 7 shell-quote Red Hat Ansible Automation Platform 2 automation-gateway, automation-platform-ui, automation-eda-controller, ansible-automation-platform-26/gateway-rhel9, ansible-automation-platform-27/gateway-rhel9, ansible-automation-platform-24/lightspeed-rhel8, +3 more Red Hat build of Apache Camel - HawtIO 4 shell-quote Red Hat Build of Podman Desktop rh-podman-desktop.git Red Hat Data Grid 8 shell-quote Red Hat Developer Hub 1 rhdh/rhdh-hub-rhel9 Red Hat Discovery 2 discovery/discovery-ui-rhel9
    affected: workaround, no fix available “Fix deferred”
  • Red Hat Enterprise Linux 9 goose Red Hat Enterprise Linux 10 goose
    affected: workaround, no fix planned “Will not fix”
  • Red Hat Enterprise Linux AI (RHEL AI) 3 rhelai3/bootc-cuda-rhel9, rhelai3/bootc-rocm-rhel9, rhelai3/bootc-gaudi-rhel9, rhelai3/disk-image-cuda-rhel9
    affected: workaround, no fix available, no fix planned “Will not fix”
  • Red Hat Fuse 7 shell-quote Red Hat OpenShift Container Platform 4 openshift4/ose-console, openshift4/ose-console-rhel9, openshift4/ose-agent-installer-ui-rhel9 Red Hat OpenShift Container Platform 5 openshift5/ose-console-rhel9, openshift5/ose-agent-installer-ui-rhel9 Red Hat OpenShift Virtualization 4 container-native-virtualization/kubevirt-console-plugin-rhel9 Red Hat Quay 3 quay/quay-rhel8 Red Hat Trusted Artifact Signer rhtas/rekor-search-ui-rhel9
    +1 more products
    Red Hat Self-service automation portal 2 ansible-automation-platform/automation-portal
    affected: workaround, no fix available “Fix deferred”
  • Red Hat OpenShift AI 3.4 rhoai/odh-mod-arch-maas-rhel9 1787251250, rhoai/odh-mod-arch-automl-rhel9 1787250508, rhoai/odh-mod-arch-autorag-rhel9 1787251550, rhoai/odh-mod-arch-eval-hub-rhel9 1791861214, rhoai/odh-mod-arch-model-registry-rhel9 1787250617
    fixed: vendor fix RHSA-2026:60520
  • Red Hat Enterprise Linux 8 pcs, grafana, pcs-snmp, grafana-pcp, grafana-loki, grafana-mssql, +12 more
    not affected: vulnerable code not present
  • Red Hat Enterprise Linux 9 pcs, pcs-snmp Red Hat OpenShift AI (RHOAI) rhoai/odh-mlflow-rhel9, rhoai/odh-mod-arch-mlflow-rhel9
    not affected: component not present
  • Red Hat OpenShift AI 3.4 rhoai/odh-cli-rhel9 1787330837, rhoai/odh-cli-rhel9 1791509689, rhoai/rhai-cli-rhel9 1787330837, rhoai/rhai-cli-rhel9 1791509689, rhoai/odh-automl-rhel9 1786612415, rhoai/odh-automl-rhel9 1791535789, +201 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
Proof of concept is public
Automatable
yes
Technical impact
partial
Assessed
4 mo ago

Exploit prediction

0.36% chance of exploitation in the next 30 days, higher than 30% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • github.com https://github.com/ljharb/shell-quote/security/advisories/GHSA-395f-4hp3-45gv referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 4.0 8.7 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
CNA 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CNA 4.0 8.7 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
GitHub 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected packages

ecosystem package affected fixed in
npm shell-quote
<1.9.0
1.9.0

Affected products

  • ljharb shell-quote

Classification

Weakness
  • CWE-407 Inefficient Algorithmic Complexity

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.