CVEfocus › CVE database › CVE-2026-56017

CVE-2026-56017JavaScript::Minifier::XS versions before 0.16 for Perl crash with a NULL pointer…

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

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.

CWE-125CWE-476

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

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.