# CVE-2026-56018: JavaScript::Minifier::XS versions before 0.16 for Perl leak memory on every call to minify(), allowing unbounded memory growth

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.46%, higher than 41% of CVEs (2026-12-01)
- Published: 2026-06-29T19:38:35.316Z
- Modified: 2026-10-25T21:10:00.770Z
- Weaknesses: CWE-400, CWE-401
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: CPANSec

## 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.

(As written by CVE List.)

## Affected

- JavaScript-Minifier-XS: before 0.16

## References

- <https://github.com/bleargh45/JavaScript-Minifier-XS/issues/10> (issue-tracking)
- <https://metacpan.org/release/GTERMARS/JavaScript-Minifier-XS-0.16/changes> (release-notes)
- <http://www.openwall.com/lists/oss-security/2026/06/29/17>

## Sources

- CVE List: [CVE-2026-56018](https://www.cve.org/CVERecord?id=CVE-2026-56018), CVE Terms of Use, modified 2026-06-29
- NVD: [CVE-2026-56018](https://nvd.nist.gov/vuln/detail/CVE-2026-56018), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-56018 · Whole record: https://cve.day/CVE-2026-56018.json · Rebuilt by cve.day 2026-11-25T22:59:26.655Z
