CVE-2026-56017

Source
https://cve.org/CVERecord?id=CVE-2026-56017
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-56017.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-56017
Downstream
Related
Published
2026-06-29T19:38:14.599Z
Modified
2026-07-15T01:49:00.218204056Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
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.

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.

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

Affected packages

Git / github.com/bleargh45/javascript-minifier-xs

Affected ranges

Type
GIT
Repo
https://github.com/bleargh45/javascript-minifier-xs
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "0.16"
        }
    ],
    "source": "AFFECTED_FIELD"
}

Affected versions

v0.*
v0.01
v0.01_01
v0.01_02
v0.01_03
v0.01_04
v0.01_05
v0.02
v0.03
v0.04
v0.05
v0.06
v0.07
v0.08
v0.09
v0.10
v0.11
v0.12
v0.13
v0.14
v0.15

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-56017.json"