Bug 2494672 (CVE-2026-56018) - CVE-2026-56018 JavaScript::Minifier::XS: JavaScript::Minifier::XS: Denial of Service due to memory leak during minification.
Summary: CVE-2026-56018 JavaScript::Minifier::XS: JavaScript::Minifier::XS: Denial of ...
Keywords:
Status: NEW
Alias: CVE-2026-56018
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2495089
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-06-29 21:02 UTC by OSIDB Bzimport
Modified: 2026-06-30 18:15 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-06-29 21:02:33 UTC
JavaScript::Minifier::XS versions before 0.16 for Perl leak memory on every call to minify(), allowing unbounded memory growth.

In JsMinify (XS.xs) the cleanup frees only the NodeSet structures and never the per-token contents buffers allocated in JsSetNodeContents; JsDiscardNode unlinks nodes without freeing their contents. Each token's contents buffer is therefore leaked on every call, and the two early returns taken when the node list is empty leak the whole NodeSet.

A long-lived process that minifies repeatedly, such as an asset pipeline or a server-side minifier endpoint, grows in memory without bound until it exhausts available memory and is killed, causing denial of service.


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