CVE-2026-56017: NULL pointer dereference in JavaScript::Minifier::XS minify()
CVE-2026-56017 is a denial-of-service vulnerability in JavaScript::Minifier::XS for Perl affecting versions before 0.16. The flaw is in the regexp-versus-division disambiguation logic in JsTokenizeString in XS.xs. When the first meaningful token of the JavaScript input is a slash, and only start-of-input, whitespace, or comments precede it, the tokenizer attempts to inspect the previous token even though no valid preceding token exists. The backward walk over whitespace and comment nodes can run past the head of the node list to NULL, after which the code performs a byte lookup through a NULL contents pointer at an underflowed length index. A subsequent identifier check dereferences the same NULL pointer. The bug is reachable through the public minify() API, and input as small as a single slash byte can crash the calling Perl process.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation causes the calling process to crash, typically as a Perl segmentation fault, resulting in denial of service. In deployments where a service minifies untrusted or third-party JavaScript, a remote attacker can submit crafted input and reliably terminate the process handling the request.
Mitigation
If you can’t patch tonight, do this now.
If immediate upgrade is not possible, avoid passing untrusted or third-party JavaScript to JavaScript::Minifier::XS minify(). As a temporary risk-reduction measure, pre-validate or reject inputs whose first meaningful token is a slash, including cases where only whitespace or comments precede it. Process isolation and crash containment may reduce service impact but do not fix the underlying flaw.
Remediation
Patch, then assume compromise.
Upgrade JavaScript::Minifier::XS to version 0.16 or later. Version 0.16 contains the fix for CVE-2026-56017.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Frequently asked questions
- Is CVE-2026-56017 exploited in the wild?
- As of Sep 25, 2026, Mallory has no reports of CVE-2026-56017 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-56017?
- As of Sep 25, 2026, Mallory has found no public exploit for CVE-2026-56017.
- Is there a patch for CVE-2026-56017?
- Upgrade JavaScript::Minifier::XS to version 0.16 or later. Version 0.16 contains the fix for CVE-2026-56017.
- How severe is CVE-2026-56017?
- CVE-2026-56017 has a CVSS v3.1 score of 7.5 (High) and an EPSS score of 0.49% (35th percentile) as of Sep 25, 2026.
Recent activity
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.