
CVE catalog
CVE-2026-56018
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 n
- Severity
- High · CVSS 7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.61% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | libjavascript-minifier-xs-perl | sid | 0.16-1 | fixed |
| Debian | libjavascript-minifier-xs-perl | forky | 0.16-1 | fixed |
| Debian | libjavascript-minifier-xs-perl | trixie | 0.15-1 | vulnerable |
| Debian | libjavascript-minifier-xs-perl | bookworm | 0.15-1 | vulnerable |
| Cpe | libjavascript-minifier-xs-perl | Not reported | Not reported | vulnerable |
| Alpine | perl-javascript-minifier-xs | 3.24 | 0.16-r0 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | libjavascript-minifier-xs-perl | source | sid | 0.16-1 | not yet assigned | Not reported | Not reported |
| Debian | libjavascript-minifier-xs-perl | source | forky | 0.16-1 | not yet assigned | Not reported | Not reported |
| Debian | libjavascript-minifier-xs-perl | source | trixie | (unfixed) | not yet assigned | Not reported | Not reported |
| Debian | libjavascript-minifier-xs-perl | source | bookworm | (unfixed) | not yet assigned | Not reported | Not reported |
| Alpine | perl-javascript-minifier-xs | apk | 3.24 | 0.16-r0 | Not reported | ALPINE-CVE-2026-56018 | Not reported |
Notes
[trixie] libjavascript-minifier-xs-perl: Minor issue [bookworm] libjavascript-minifier-xs-perl: Minor issue; unbounded memory-leak DoS in JS minifier, fixed upstream in 0.16
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [libjavascript-minifier-xs-perl]Affected
Source package: [libjavascript-minifier-xs-perl]
Details (2)
0.15-1+b2· amd64 · bookwormAffected
nvd · libjavascript-minifier-xs-perl · debian · bookworm; nvd · libjavascript-minifier-xs-perl · debian · 12
0.15-1+b2· arm64 · bookwormAffected
nvd · libjavascript-minifier-xs-perl · debian · bookworm; nvd · libjavascript-minifier-xs-perl · debian · 12
[Debian 13 (Trixie)]
- [libjavascript-minifier-xs-perl]Affected
Source package: [libjavascript-minifier-xs-perl]
Details (2)
0.15-1+b5· amd64 · trixieAffected
nvd · libjavascript-minifier-xs-perl · debian · 13
0.15-1+b5· arm64 · trixieAffected
nvd · libjavascript-minifier-xs-perl · debian · 13
Observed:
References
- [http://www.openwall.com/lists/oss-security/2026/06/29/17]
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_11158-1.json]
- [https://github.com/bleargh45/JavaScript-Minifier-XS/issues/10]
- [https://metacpan.org/release/GTERMARS/JavaScript-Minifier-XS-0.16/changes]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-56018]
- [https://osv.dev/vulnerability/ALPINE-CVE-2026-56018]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-56018]
- [https://security-tracker.debian.org/tracker/CVE-2026-56018]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-56018.json]
[Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]