CVE-2026-56018 Affecting libjavascript-minifier-xs-perl package, versions <0.16-1


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.61% (47th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIANUNSTABLE-LIBJAVASCRIPTMINIFIERXSPERL-17682861
  • published30 Jun 2026
  • disclosed29 Jun 2026

Introduced: 29 Jun 2026

CVE-2026-56018  (opens in a new tab)

How to fix?

Upgrade Debian:unstable libjavascript-minifier-xs-perl to version 0.16-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libjavascript-minifier-xs-perl package and not the libjavascript-minifier-xs-perl package as distributed by Debian. See How to fix? for Debian:unstable relevant fixed versions and status.

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.