Back to overview

CVE-2026-56018

HIGH
7.5
CVSS 3.1
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.

Metadata

CVE ID
CVE-2026-56018
State
PUBLISHED
Assigner
CPANSec
Reserved
2026-06-18 11:27 UTC
Published
2026-06-29 19:38 UTC
Last updated
2026-06-29 22:24 UTC
Primary CWE
CWE-401
CWE-401 Missing Release of Memory after Effective Lifetime
Vendor / Product
GTERMARS / JavaScript::Minifier::XS
Sources
cve.org  ·  NVD

Severity & Metrics

7.5 HIGH CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
SSVC — CISA Coordinator
Exploitation
none
Automatable
yes
Tech. Impact
partial
Affected products (1)
VendorProductPlatformVersions
GTERMARS JavaScript::Minifier::XS 0 < 0.16
Weakness (CWE)
CWESourceDescription
CWE-400 cna CWE-400 Uncontrolled Resource Consumption
CWE-401 cna CWE-401 Missing Release of Memory after Effective Lifetime
CVSS scores (1)
ScoreSeverityVersionSourceVector
7.5 HIGH 3.1 adp CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Back to overview