CVE-2026-56018 Affecting perl-javascript-minifier-xs package, versions <0.16-r0


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-ALPINE324-PERLJAVASCRIPTMINIFIERXS-18310114
  • published26 Jul 2026
  • disclosed29 Jun 2026

Introduced: 29 Jun 2026

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

How to fix?

Upgrade Alpine:3.24 perl-javascript-minifier-xs to version 0.16-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream perl-javascript-minifier-xs package and not the perl-javascript-minifier-xs package as distributed by Alpine. See How to fix? for Alpine:3.24 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.