CVEfocus › CVE database › CVE-2026-56018

CVE-2026-56018JavaScript::Minifier::XS versions before 0.16 for Perl leak memory on every call to…

CVSS 7.5 HighEPSS 0.6% (higher than 43% of CVEs)Published 2026-06-29Updated 2026-06-29Assigner: CPANSec

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.

CWE-400CWE-401

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

2Fixed
6Fix pending
3Under investigation
1Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10libjavascript-minifier-xs-perlFix pendingUBUNTU-CVE-2026-56018
Ubuntu 26.04libjavascript-minifier-xs-perlUnder investigationUBUNTU-CVE-2026-56018
Ubuntu 25.10libjavascript-minifier-xs-perlWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-56018
Ubuntu 24.04libjavascript-minifier-xs-perlUnder investigationUBUNTU-CVE-2026-56018
Ubuntu 22.04libjavascript-minifier-xs-perlUnder investigationUBUNTU-CVE-2026-56018
Ubuntu 20.04libjavascript-minifier-xs-perlFix pendingUBUNTU-CVE-2026-56018
Ubuntu 18.04libjavascript-minifier-xs-perlFix pendingUBUNTU-CVE-2026-56018
Ubuntu 16.04libjavascript-minifier-xs-perlFix pendingUBUNTU-CVE-2026-56018
Debian 14libjavascript-minifier-xs-perlFixed0.16-1DEBIAN-CVE-2026-56018
Debian 13libjavascript-minifier-xs-perlFix pendingDEBIAN-CVE-2026-56018
Debian 12libjavascript-minifier-xs-perlFix pendingDEBIAN-CVE-2026-56018
Alpine Linux 3.24perl-javascript-minifier-xsFixed0.16-r0ALPINE-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.

Solution: Upgrade to JavaScript::Minifier::XS version 0.16 or later.

Vendor advisories:

References

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.