Memory Leak in JavaScript Minifier for Perl Affects Asset Pipeline Operations
CVE-2026-56018

7.5HIGH

Key Information:

Vendor

Gtermars

Vendor
CVE Published:
29 June 2026

What is CVE-2026-56018?

JavaScript::Minifier::XS, prior to version 0.16, contains a vulnerability whereby the minify() function leaks memory on each invocation. This issue arises because the cleanup process fails to free the allocated contents buffers for each token, resulting in unbounded memory growth with repeated calls. If utilized in long-lived processes such as asset pipelines or server-side minification, this can lead to a denial of service as memory consumption escalates unchecked until resources are exhausted.

Affected Version(s)

JavaScript::Minifier::XS 0 < 0.16

References

CVSS V3.1

Score:
7.5
Severity:
HIGH
Confidentiality:
None
Integrity:
None
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.