{"id":"CVE-2026-56017","summary":"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","details":"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.\n\nThe 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.\n\nThe 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.","modified":"2026-07-15T01:49:00.218204056Z","published":"2026-06-29T19:38:14.599Z","related":["openSUSE-SU-2026:11158-1"],"database_specific":{"cwe_ids":["CWE-125","CWE-476"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/56xxx/CVE-2026-56017.json","cna_assigner":"CPANSec"},"references":[{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2026/06/29/16"},{"type":"WEB","url":"https://cpan.org/modules"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/56xxx/CVE-2026-56017.json"},{"type":"ADVISORY","url":"https://metacpan.org/release/GTERMARS/JavaScript-Minifier-XS-0.16/changes"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-56017"},{"type":"PACKAGE","url":"https://github.com/bleargh45/JavaScript-Minifier-XS"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/bleargh45/javascript-minifier-xs","events":[{"introduced":"0"},{"fixed":"84461af21b2e433d5ed65c31d7d901cfae9dc7f4"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"0.16"}],"source":"AFFECTED_FIELD"}}],"versions":["v0.15","v0.14","v0.13","v0.12","v0.11","v0.10","v0.09","v0.08","v0.07","v0.06","v0.05","v0.04","v0.03","v0.02","v0.01","v0.01_05","v0.01_04","v0.01_03","v0.01_02","v0.01_01"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-56017.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}