Bug 2494722 - CVE-2026-56017 perl-JavaScript-Minifier-XS: JavaScript::Minifier::XS: Denial of Service via NULL pointer dereference with crafted input [fedora-all]
Summary: CVE-2026-56017 perl-JavaScript-Minifier-XS: JavaScript::Minifier::XS: Denial ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: perl-JavaScript-Minifier-XS
Version: rawhide
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Jitka Plesnikova
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["ab23247a-ed04-4b4f-a1e4-e...
Depends On:
Blocks: CVE-2026-56017
TreeView+ depends on / blocked
 
Reported: 2026-06-29 22:07 UTC by Jon Moroney
Modified: 2026-09-23 03:19 UTC (History)
2 users (show)

Fixed In Version: perl-JavaScript-Minifier-XS-0.16-1.fc45 perl-JavaScript-Minifier-XS-0.16-1.fc44 perl-JavaScript-Minifier-XS-0.16-1.fc43
Clone Of:
Environment:
Last Closed: 2026-06-30 05:43:44 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jon Moroney 2026-06-29 22:07:50 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

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.


Note You need to log in before you can comment on or make changes to this bug.