Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-13311: CWE-407 Inefficient Algorithmic Complexity in ljharb shell-quote

0
High
VulnerabilityCVE-2026-13311cvecve-2026-13311cwe-407
Published: 06/25/2026 (06/25/2026, 04:48:36 UTC)
Source: CVE Database V5
Vendor/Project: ljharb
Product: shell-quote

Description

CVE-2026-13311 is a high-severity vulnerability in the ljharb shell-quote library prior to version 1.8.5. The parse() function uses an inefficient algorithm that causes quadratic time complexity when processing input tokens, leading to potential denial of service by blocking the Node.js event loop. This issue affects availability only, with no code execution or data disclosure. The vulnerability is fixed in version 1.8.5.

CVSS v4.0

Score 8.7high

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

shell-quote
pkg:npm/shell-quote
Affected versions
<=1.8.4

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/25/2026, 05:45:52 UTC

Technical Analysis

The ljharb shell-quote library versions up to 1.8.4 contain an inefficient algorithmic complexity issue (CWE-407) in the parse() function. The function finalizes parsed tokens using Array.prototype.concat as a reduce accumulator, which reallocates and copies the entire growing array on each iteration, resulting in O(n^2) time complexity relative to input size. An attacker supplying a crafted string with space-separated tokens can cause the single-threaded Node.js event loop to be blocked for an extended period, causing a denial of service. No shell metacharacters are required for exploitation. The vulnerability impacts availability only and is fixed in version 1.8.5.

Potential Impact

This vulnerability allows an attacker to cause a denial of service by blocking the Node.js event loop with a crafted input string, impacting application availability. There is no risk of code execution or data disclosure. The severity is high due to the potential for service disruption.

Mitigation Recommendations

A fix is available in ljharb shell-quote version 1.8.5. Users should upgrade to version 1.8.5 or later to remediate this vulnerability. No other mitigation is indicated.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
harborist
Date Reserved
2026-06-25T04:39:03.579Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a3cbd214853345fc16627b6

Added to database: 06/25/2026, 05:31:13 UTC

Last enriched: 06/25/2026, 05:45:52 UTC

Last updated: 06/25/2026, 06:16:52 UTC

Views: 32

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses