CVE-2026-56018

NameCVE-2026-56018
DescriptionJavaScript::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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
libjavascript-minifier-xs-perl (PTS)bullseye0.13-1vulnerable
forky, bookworm, trixie0.15-1vulnerable
sid0.16-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
libjavascript-minifier-xs-perlsource(unstable)0.16-1

Notes

https://lists.security.metacpan.org/cve-announce/msg/41396069/
https://github.com/bleargh45/JavaScript-Minifier-XS/issues/10

Search for package or bug name: Reporting problems