CVE catalog

CVE-2026-56017

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 JsTok

[CVE catalog]

Severity
High · CVSS 7.5CVSS: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.49% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianlibjavascript-minifier-xs-perlsid0.16-1fixed
Debianlibjavascript-minifier-xs-perlforky0.16-1fixed
Debianlibjavascript-minifier-xs-perltrixie0.15-1vulnerable
Debianlibjavascript-minifier-xs-perlbookworm0.15-1vulnerable
Cpelibjavascript-minifier-xs-perlNot reportedNot reportedvulnerable
Alpineperl-javascript-minifier-xs3.240.16-r0fixed
Opensuseperl-JavaScript-Minifier-XStumbleweed0.160.0-1.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibjavascript-minifier-xs-perlsourcesid0.16-1not yet assignedNot reportedNot reported
Debianlibjavascript-minifier-xs-perlsourceforky0.16-1not yet assignedNot reportedNot reported
Debianlibjavascript-minifier-xs-perlsourcetrixie(unfixed)not yet assignedNot reportedNot reported
Debianlibjavascript-minifier-xs-perlsourcebookworm(unfixed)not yet assignedNot reportedNot reported
Alpineperl-javascript-minifier-xsapk3.240.16-r0Not reportedALPINE-CVE-2026-56017Not reported
Opensuseperl-JavaScript-Minifier-XSrpmtumbleweed0.160.0-1.1Not reportedOPENSUSE-SU-2026:11158-1Not reported

Notes

[trixie] libjavascript-minifier-xs-perl: Minor issue [bookworm] libjavascript-minifier-xs-perl: Minor issue; crash-only DoS in JS minifier, fixed upstream in 0.16

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [libjavascript-minifier-xs-perl]

    Details (2)
    • 0.15-1+b2 · amd64 · bookworm

      Affected

      nvd · libjavascript-minifier-xs-perl · debian · bookworm; nvd · libjavascript-minifier-xs-perl · debian · 12

    • 0.15-1+b2 · arm64 · bookworm

      Affected

      nvd · libjavascript-minifier-xs-perl · debian · bookworm; nvd · libjavascript-minifier-xs-perl · debian · 12

[Debian 13 (Trixie)]

[openSUSE Tumbleweed]

Observed:

References