CVE-2026-56017
published high CVSS 3.1 · 7.5JavaScript::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
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| GTERMARS | — | JavaScript-Minifier-XSJavaScript::Minifier::XS · 0 to < 0.16 · Other versions: unaffected | Affected | Not stated | CPANSec |
| Alpine Linux | edge | perl-javascript-minifier-xs | Fixed | 0.16-r0 | Package fix record |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-JavaScript-Minifier-XSaarch64 | Advisory build | 0.160.0-1.1 | OPENSUSE-SU-2026:11158-1 |
| Alpine Linux | v3.24 | perl-javascript-minifier-xs | Fixed | 0.16-r0 | Package fix record |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-JavaScript-Minifier-XSppc64le | Advisory build | 0.160.0-1.1 | OPENSUSE-SU-2026:11158-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-JavaScript-Minifier-XSs390x | Advisory build | 0.160.0-1.1 | OPENSUSE-SU-2026:11158-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-JavaScript-Minifier-XSx86_64 | Advisory build | 0.160.0-1.1 | OPENSUSE-SU-2026:11158-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| GTERMARS | JavaScript::Minifier::XS | 0 to < 0.16 (affected · custom)Default: unaffected | CPANSec · cna |
Weaknesses
2- CWE-476 CWE-476 NULL Pointer Dereference
- CWE-125 CWE-125 Out-of-bounds Read
References
2Provider assertions
3CPANSec · cna
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
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 47407cf1b50badff0ba7c1120a41a35ef20b7de451ab41255f40bad4c2e2f0f0
- Ingested
- 23 Sep 2026, 09:21:01 UTC
- Source record
- Official CVE record