CVE-2026-56017JavaScript::Minifier::XS versions before 0.16 for Perl crash with a NULL pointer…
JavaScript::Minifier::XS versions before 0.16 for Perl crash with a NULL pointer dereference when the first meaningful token of the input is a slash. The regexp versus division disambiguator in JsTokenizeString (XS.xs) inspects the previous token's last byte to choose between a regexp literal and a division operator. When a slash is the first meaningful token, with the start of input or only whitespace and comments before it, there is no valid preceding token: the walk back over whitespace and comment nodes runs off the head of the node list to NULL, and the byte lookup reads through a NULL contents pointer at an underflowed length index. The following identifier check dereferences the same NULL pointer. The crash is reachable through the public minify() API, so input as small as a single slash byte crashes the calling process. A service that minifies untrusted or third-party JavaScript can be crashed by a remote request, 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-56017 | |
| Ubuntu 26.04 | libjavascript-minifier-xs-perl | Under investigation | UBUNTU-CVE-2026-56017 | |
| Ubuntu 25.10 | libjavascript-minifier-xs-perl | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-56017 | |
| Ubuntu 24.04 | libjavascript-minifier-xs-perl | Under investigation | UBUNTU-CVE-2026-56017 | |
| Ubuntu 22.04 | libjavascript-minifier-xs-perl | Under investigation | UBUNTU-CVE-2026-56017 | |
| Ubuntu 20.04 | libjavascript-minifier-xs-perl | Fix pending | UBUNTU-CVE-2026-56017 | |
| Ubuntu 18.04 | libjavascript-minifier-xs-perl | Fix pending | UBUNTU-CVE-2026-56017 | |
| Ubuntu 16.04 | libjavascript-minifier-xs-perl | Fix pending | UBUNTU-CVE-2026-56017 | |
| Debian 14 | libjavascript-minifier-xs-perl | Fixed | 0.16-1 | DEBIAN-CVE-2026-56017 |
| Debian 13 | libjavascript-minifier-xs-perl | Fix pending | DEBIAN-CVE-2026-56017 | |
| Debian 12 | libjavascript-minifier-xs-perl | Fix pending | DEBIAN-CVE-2026-56017 | |
| Alpine Linux 3.24 | perl-javascript-minifier-xs | Fixed | 0.16-r0 | ALPINE-CVE-2026-56017 |
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
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.