Vulnerability · Published Jun 29, 2026 · Assigned by CPANSec

CVE-2026-56017JavaScript::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

High 7.5

In plain English

A high-severity null pointer dereference in JavaScript::Minifier::XS from GTERMARS. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 42% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.5%top 57.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.24perl-javascript-minifier-xs0.16-r0ALPINE-CVE-2026-56017
Debian:12libjavascript-minifier-xs-perlno fix listedDEBIAN-CVE-2026-56017
Debian:13libjavascript-minifier-xs-perlno fix listedDEBIAN-CVE-2026-56017
Debian:14libjavascript-minifier-xs-perl0.16-1DEBIAN-CVE-2026-56017
Ubuntu:22.04:LTSlibjavascript-minifier-xs-perlno fix listedUBUNTU-CVE-2026-56017
Ubuntu:24.04:LTSlibjavascript-minifier-xs-perlno fix listedUBUNTU-CVE-2026-56017
Ubuntu:25.10libjavascript-minifier-xs-perlno fix listedUBUNTU-CVE-2026-56017
Ubuntu:26.04:LTSlibjavascript-minifier-xs-perlno fix listedUBUNTU-CVE-2026-56017
Ubuntu:26.10libjavascript-minifier-xs-perlno fix listedUBUNTU-CVE-2026-56017

Affected products (as reported)

VendorProductVersions
GTERMARS JavaScript::Minifier::XS 0 – before 0.16

Weakness: CWE-476, CWE-125 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References