cve.bz

CVE-2026-13311 shell-quote project shell-quote: Inefficient Algorithmic Complexity

8.7 highEPSS 0.4%Fix available

High (8.7) in shell-quote project shell-quote. EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in shell-quote 1.9.0.

On this page
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.

Severity

CVSS 4.0

8.7 high
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

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 36th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2026-06-25. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-407 Inefficient Algorithmic Complexity
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-13311 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-13311?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-13311?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-13311 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
ljharb shell-quotethrough 1.8.4

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-395f-4hp3-45gvnpmshell-quote<1.9.01.9.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12node-shell-quote1.7.4+~1.7.1-1+deb12u2DEBIAN-CVE-2026-13311 DLA-4901-1
Debian13node-shell-quote1.7.4+~1.7.1-1+deb13u2DEBIAN-CVE-2026-13311 DSA-6548-1
Debian14node-shell-quote1.9.0+~1.7.5-1DEBIAN-CVE-2026-13311
Ubuntu24.04:LTS, 25.10, 26.10 and 3 morenode-shell-quoteno fix listedUBUNTU-CVE-2026-13311
openSUSELeap 16.0agama-web-ui17+673.b97ba64d6-160000.12.1openSUSE-SU-2026:21448-1
openSUSELeap 16.0python-pytest-html4.1.1-bp160.3.1openSUSE-SU-2026:21176-1
openSUSETumbleweedagama-web-ui23+75.1a877fb50-50.1openSUSE-SU-2026:11472-1
openSUSETumbleweedheroic-games-launcher2.22.0-3.1openSUSE-SU-2026:11145-1
openSUSETumbleweedpython-pytest-html4.2.0-3.1openSUSE-SU-2026:11149-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

A flaw was found in the shell-quote npm package's `parse()` function, which uses an `O(n²)` array concatenation pattern when processing tokens. An attacker who can supply untrusted input to code paths calling `parse()` can block the Node.js event loop with a relatively small payload of space-separated words, causing a denial of service (DoS). The vulnerable `parse()` function is not typically exposed to external user input in Red Hat product deployments, reducing the practical exploitability of this flaw.

Red Hat's mitigation

Upgrade shell-quote to version 1.8.5.

If upgrading shell-quote to version 1.8.5 or later is not immediately possible, the following mitigations can reduce exposure:

1. Validate and limit the length of any user-controlled strings before passing them to shell-quote's `parse()` function.

2. If `parse()` is not required, ensure that only the `quote()` function is used, as it is not affected by this vulnerability.

ProductPackageStateAdvisory
Red Hat OpenShift AI 3.4rhoai/odh-mod-arch-automl-rhel9:1787250508Fixed 2026-08-27RHSA-2026:60520
Red Hat OpenShift AI 3.4rhoai/odh-mod-arch-autorag-rhel9:1787251550Fixed 2026-08-27RHSA-2026:60520
Red Hat OpenShift AI 3.4rhoai/odh-mod-arch-maas-rhel9:1787251250Fixed 2026-08-27RHSA-2026:60520
Red Hat OpenShift AI 3.4rhoai/odh-mod-arch-model-registry-rhel9:1787250617Fixed 2026-08-27RHSA-2026:60520
Red Hat OpenShift AI 3.4rhoai/odh-mod-arch-eval-hub-rhel9:1791861214Fixed 2026-10-19RHSA-2026:84734
Cryostat 4cryostat-openshift-console-plugin-npmFix deferred
Cryostat 4shell-quoteFix deferred
Gatekeeper 3gatekeeper/gatekeeper-rhel9Fix deferred
Migration Toolkit for Containersrhmtc/openshift-migration-ui-rhel8Fix deferred
Node HealthCheck Operatorworkload-availability/node-healthcheck-must-gather-rhel9Fix deferred
Node HealthCheck Operatorworkload-availability/node-healthcheck-operator-bundleFix deferred
Node HealthCheck Operatorworkload-availability/node-healthcheck-rhel9-operatorFix deferred
OpenShift Lightspeedopenshift-lightspeed/lightspeed-console-plugin-419-rhel9Fix deferred
OpenShift Lightspeedopenshift-lightspeed/lightspeed-console-plugin-pf5-rhel9Fix deferred
OpenShift Lightspeedopenshift-lightspeed/lightspeed-console-plugin-rhel9Fix deferred
OpenShift Pipelinesopenshift-pipelines/pipelines-console-plugin-pf5-rhel9Fix deferred
OpenShift Pipelinesopenshift-pipelines/pipelines-console-plugin-rhel8Fix deferred
OpenShift Pipelinesopenshift-pipelines/pipelines-console-plugin-rhel9Fix deferred
OpenShift Pipelinesopenshift-pipelines/pipelines-hub-ui-rhel8Fix deferred
OpenShift Pipelinesopenshift-pipelines/pipelines-hub-ui-rhel9Fix deferred
44 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-13311.

References

Check your stackJSON