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

Published Jun 29, 2026
·
Updated

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.

Affected Software

1 affected component
Perl JavaScript::Minifier::XS<0.16

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade JavaScript::Minifier::XS to a version that resolves this vulnerability.

    Fixed in 0.16

Event History

Jun 29, 2026
CVE Published
via MITRE·07:38 PM
Data Sourced
via MITRE·07:38 PM
RemedyDescriptionWeakness
Data Sourced
via NVD·08:17 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-56017?

CVE-2026-56017 has a severity rating of high with a CVSS score of 7.5.

2

How do I fix CVE-2026-56017?

To fix CVE-2026-56017, update JavaScript::Minifier::XS to version 0.16 or later.

3

What impact does CVE-2026-56017 have on my application?

CVE-2026-56017 can lead to a crash due to a NULL pointer dereference when parsing certain input.

4

Which versions are affected by CVE-2026-56017?

CVE-2026-56017 affects JavaScript::Minifier::XS versions prior to 0.16.

5

What type of vulnerability is CVE-2026-56017?

CVE-2026-56017 is classified as a Null Pointer Dereference vulnerability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203