CVE-2026-56018

Source
https://cve.org/CVERecord?id=CVE-2026-56018
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-56018.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-56018
Downstream
Related
Published
2026-06-29T19:38:35.316Z
Modified
2026-07-08T08:14:04.207644379Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
JavaScript::Minifier::XS versions before 0.16 for Perl leak memory on every call to minify(), allowing unbounded memory growth
Details

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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/56xxx/CVE-2026-56018.json",
    "cwe_ids": [
        "CWE-400",
        "CWE-401"
    ],
    "cna_assigner": "CPANSec"
}
References

Affected packages

Git / github.com/bleargh45/javascript-minifier-xs

Affected ranges

Type
GIT
Repo
https://github.com/bleargh45/javascript-minifier-xs
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "source": [
        "AFFECTED_FIELD",
        "DESCRIPTION"
    ],
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "0.16"
        }
    ]
}

Affected versions

v0.*
v0.01
v0.01_01
v0.01_02
v0.01_03
v0.01_04
v0.01_05
v0.02
v0.03
v0.04
v0.05
v0.06
v0.07
v0.08
v0.09
v0.10
v0.11
v0.12
v0.13
v0.14
v0.15

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-56018.json"