A high-severity denial-of-service vulnerability in the Node.js library Shescape allows a remote unauthenticated attacker to exhaust CPU resources and halt application processing by sending crafted input to the library's compose() function. The flaw, tracked as GHSA-gm3r-q2wp-hw87, is caused by quadratic-time behavior in the library's default flag-protection logic, where repeated array copying and string joining inside a loop can be abused with repeated null-byte and hyphen sequences to block the single-threaded Node.js event loop. The issue is classified under CWE-407 and CWE-400 and carries a CVSS v4.0 score of 8.7.
The bug fits the broader Endpoint Denial of Service technique documented by MITRE ATT&CK as T1499, in which attackers degrade or prevent service availability by exhausting host or application resources rather than saturating network bandwidth. In this case, the attack targets the application stack directly, causing total service disruption through algorithmic complexity and CPU exhaustion. Maintainers fixed the issue by replacing the repeated copy-and-join loop with an index-based linear scan, and users are advised to upgrade to Shescape 2.1.14 or 3.0.1.

See affected versions and whether adversaries are exploiting it.
2 events from the most recent confirmed update back to the earliest known activity.
A GitHub Security Advisory disclosed a high-severity algorithmic complexity denial-of-service flaw in the Node.js library Shescape, where crafted inputs can trigger quadratic-time behavior in compose() and block the event loop through CPU exhaustion. The advisory states the issue was fixed and recommends upgrading to versions 2.1.14 or 3.0.1.
MITRE ATT&CK published technique T1499 for Endpoint Denial of Service, describing how adversaries degrade or block service availability by exhausting host resources or causing persistent crash conditions.
Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.
See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
2 references tracked. Mallory keeps watching after this page renders.
cvereports.com
Open sourceattack.mitre.org
Open sourceMap indicators from this story to your assets and identify affected systems in minutes.
Every observed campaign, victim, and pivot linked to actors named in this story.
Malware, exploits, and IOCs connected to the activity described here.
YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Get matching new stories delivered to your team as they break — not the next morning.
Ask questions about this story and take action on the answers.