CVE-2026-56018JavaScript::Minifier::XS versions before 0.16 for Perl leak memory on every call to…
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.
What to do
Fixed builds are available from Alpine, Debian: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | libjavascript-minifier-xs-perl | Fix pending | UBUNTU-CVE-2026-56018 | |
| Ubuntu 26.04 | libjavascript-minifier-xs-perl | Under investigation | UBUNTU-CVE-2026-56018 | |
| Ubuntu 25.10 | libjavascript-minifier-xs-perl | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-56018 | |
| Ubuntu 24.04 | libjavascript-minifier-xs-perl | Under investigation | UBUNTU-CVE-2026-56018 | |
| Ubuntu 22.04 | libjavascript-minifier-xs-perl | Under investigation | UBUNTU-CVE-2026-56018 | |
| Ubuntu 20.04 | libjavascript-minifier-xs-perl | Fix pending | UBUNTU-CVE-2026-56018 | |
| Ubuntu 18.04 | libjavascript-minifier-xs-perl | Fix pending | UBUNTU-CVE-2026-56018 | |
| Ubuntu 16.04 | libjavascript-minifier-xs-perl | Fix pending | UBUNTU-CVE-2026-56018 | |
| Debian 14 | libjavascript-minifier-xs-perl | Fixed | 0.16-1 | DEBIAN-CVE-2026-56018 |
| Debian 13 | libjavascript-minifier-xs-perl | Fix pending | DEBIAN-CVE-2026-56018 | |
| Debian 12 | libjavascript-minifier-xs-perl | Fix pending | DEBIAN-CVE-2026-56018 | |
| Alpine Linux 3.24 | perl-javascript-minifier-xs | Fixed | 0.16-r0 | ALPINE-CVE-2026-56018 |
What the vendor says
As published in the CVE record by CPANSec, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- GTERMARS JavaScript::Minifier::XS: affected: before 0.16; fixed in
0.16
Solution: Upgrade to JavaScript::Minifier::XS version 0.16 or later.
Vendor advisories:
References
- https://github.com/bleargh45/JavaScript-Minifier-XS/issues/10
- https://metacpan.org/release/GTERMARS/JavaScript-Minifier-XS-0.16/changes
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.