CVE-2026-56018
published high CVSS 3.1 · 7.5JavaScript::Minifier::XS versions before 0.16 for Perl leak memory on every call to minify(), allowing unbounded memory growth
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| GTERMARS | — | JavaScript-Minifier-XSJavaScript::Minifier::XS · 0 to < 0.16 · Other versions: unaffected | Affected | Not stated | CPANSec |
| Alpine Linux | edge | perl-javascript-minifier-xs | Fixed | 0.16-r0 | Package fix record |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-JavaScript-Minifier-XSaarch64 | Advisory build | 0.160.0-1.1 | OPENSUSE-SU-2026:11158-1 |
| Alpine Linux | v3.24 | perl-javascript-minifier-xs | Fixed | 0.16-r0 | Package fix record |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-JavaScript-Minifier-XSppc64le | Advisory build | 0.160.0-1.1 | OPENSUSE-SU-2026:11158-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-JavaScript-Minifier-XSs390x | Advisory build | 0.160.0-1.1 | OPENSUSE-SU-2026:11158-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-JavaScript-Minifier-XSx86_64 | Advisory build | 0.160.0-1.1 | OPENSUSE-SU-2026:11158-1 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| GTERMARS | JavaScript::Minifier::XS | 0 to < 0.16 (affected · custom)Default: unaffected | CPANSec · cna |
Weaknesses
2- CWE-401 CWE-401 Missing Release of Memory after Effective Lifetime
- CWE-400 CWE-400 Uncontrolled Resource Consumption
References
3Provider assertions
3CPANSec · cna
JavaScript::Minifier::XS versions before 0.16 for Perl leak memory on every call to minify(), allowing unbounded memory growth
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- d457ab1e387f7fd252f85fac09f6790caa50d3e652710001adb30cb6ee73e0af
- Ingested
- 23 Sep 2026, 09:21:21 UTC
- Source record
- Official CVE record