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-56018: CWE-401 Missing Release of Memory after Effective Lifetime in GTERMARS JavaScript::Minifier::XS

0
High
VulnerabilityCVE-2026-56018cvecve-2026-56018cwe-401cwe-400
Published: 06/29/2026 (06/29/2026, 19:38:35 UTC)
Source: CVE Database V5
Vendor/Project: GTERMARS
Product: JavaScript::Minifier::XS

Description

JavaScript::Minifier::XS versions before 0.16 for Perl leak memory on every call to minify(), allowing unbounded memory growth. In JsMinify (XS.xs) the cleanup frees only the NodeSet structures and never the per-token contents buffers allocated in JsSetNodeContents; JsDiscardNode unlinks nodes without freeing their contents. Each token's contents buffer is therefore leaked on every call, and the two early returns taken when the node list is empty leak the whole NodeSet. A long-lived process that minifies repeatedly, such as an asset pipeline or a server-side minifier endpoint, grows in memory without bound until it exhausts available memory and is killed, causing denial of service.

CVSS v3.1

Score 7.5high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected software

GitHub Actionsmore threats →cve
JavaScript-Minifier-XS
pkg:github/JavaScript-Minifier-XS
Affected versions
<0.16

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/29/2026, 20:36:28 UTC

Technical Analysis

The vulnerability in JavaScript::Minifier::XS (prior to version 0.16) involves improper memory management in the JsMinify (XS.xs) component. Specifically, while NodeSet structures are freed during cleanup, the per-token content buffers allocated by JsSetNodeContents are never released. Additionally, JsDiscardNode unlinks nodes without freeing their contents buffers. This results in a memory leak on every call to minify(), and early returns when the node list is empty leak the entire NodeSet. Consequently, long-lived processes that repeatedly invoke minify() experience unbounded memory growth, potentially leading to denial of service due to memory exhaustion.

Potential Impact

Unbounded memory growth in affected versions can cause long-running processes using JavaScript::Minifier::XS to exhaust system memory, resulting in process termination and denial of service. There is no indication of remote code execution or data corruption, but service availability is impacted.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid using affected versions in long-lived processes that repeatedly call minify(), or restart such processes regularly to mitigate memory exhaustion.

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
CPANSec
Date Reserved
2026-06-18T11:27:09.117Z
Cvss Version
null
State
PUBLISHED
Remediation Level
null

Threat ID: 6a42d3d527e9c7971972d1c2

Added to database: 06/29/2026, 20:21:41 UTC

Last enriched: 06/29/2026, 20:36:28 UTC

Last updated: 06/29/2026, 21:06:43 UTC

Views: 3

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