
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
- 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.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.
| 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 |
| Opensuse | perl-JavaScript-Minifier-XS | tumbleweed | 0.160.0-1.1 | 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-56017 | Not reported |
| Opensuse | perl-JavaScript-Minifier-XS | rpm | tumbleweed | 0.160.0-1.1 | Not reported | OPENSUSE-SU-2026:11158-1 | Not 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)]
- [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
[openSUSE Tumbleweed]
- [perl-JavaScript-Minifier-XS]Fixed
Source package: [perl-JavaScript-Minifier-XS]
Details (1)
0.160.0-1.4· x86_64 · tumbleweedFixed · Fixed:
0.160.0-1.1nvd · perl-JavaScript-Minifier-XS · opensuse · tumbleweed
Observed:
References
- [http://www.openwall.com/lists/oss-security/2026/06/29/16]
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_11158-1.json]
- [https://metacpan.org/release/GTERMARS/JavaScript-Minifier-XS-0.16/changes]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-56017]
- [https://osv.dev/vulnerability/ALPINE-CVE-2026-56017]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-56017]
- [https://osv.dev/vulnerability/openSUSE-SU-2026:11158-1]
- [https://security-tracker.debian.org/tracker/CVE-2026-56017]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-56017.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]