{"id":"CVE-2026-56018","aliases":["ALPINE-CVE-2026-56018","DEBIAN-CVE-2026-56018","EUVD-2026-40182","GHSA-fvxv-8c37-qrc6","MGASA-2026-0283","UBUNTU-CVE-2026-56018","openSUSE-SU-2026:11158-1"],"status":"published","title":"JavaScript::Minifier::XS versions before 0.16 for Perl leak memory on every call to minify(), allowing unbounded memory growth","description":"JavaScript::Minifier::XS versions before 0.16 for Perl leak memory on every call to minify(), allowing unbounded memory growth.\n\nIn 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.\n\nA 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.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"adp","from":"cve"},"epss":{"day":"2026-11-11","score":0.00609,"percentile":0.49636,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-400","CWE-401"],"published":"2026-06-29T19:38:35Z","modified":"2026-10-28T02:30:27Z","fixes":[{"ecosystem":"Alpine:v3.24","package":"perl-javascript-minifier-xs","fixed_in":["0.16-r0"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"libjavascript-minifier-xs-perl","fixed_in":["0.16-1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Alpine:v3.24","package":"perl-javascript-minifier-xs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.16-r0"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"libjavascript-minifier-xs-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.15-1","0.16-1"]},{"source":"osv","ecosystem":"Debian:13","package":"libjavascript-minifier-xs-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.15-1","0.16-1"]},{"source":"osv","ecosystem":"Debian:14","package":"libjavascript-minifier-xs-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.16-1"}]}],"versions":["0.15-1"]},{"source":"osv","ecosystem":"Mageia:10","package":"perl-JavaScript-Minifier-XS","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.160.0-1.mga10"}]}],"bundled":2},{"source":"osv","ecosystem":"Mageia:9","package":"perl-JavaScript-Minifier-XS","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.160.0-1.mga9"}]}],"bundled":2},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"libjavascript-minifier-xs-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.11-1","0.11-1build1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"libjavascript-minifier-xs-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.11-1build3"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"libjavascript-minifier-xs-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.11-1build4","0.11-1build5"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"libjavascript-minifier-xs-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.13-1","0.15-1","0.15-1build1"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"libjavascript-minifier-xs-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.15-1build2","0.15-1build3","0.15-1build4","0.15-1build5"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"libjavascript-minifier-xs-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.15-1build6"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"libjavascript-minifier-xs-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.15-1build6","0.16-1","0.16-1build1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"libjavascript-minifier-xs-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.15-1build6"]},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"perl-JavaScript-Minifier-XS","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.160.0-1.1"}]}],"bundled":2}],"products":[{"vendor":"gtermars","product":"javascript::minifier::xs"}],"references":[{"url":"https://github.com/bleargh45/JavaScript-Minifier-XS/issues/10","tags":["issue-tracking","report"]},{"url":"https://metacpan.org/release/GTERMARS/JavaScript-Minifier-XS-0.16/changes","tags":["release-notes","advisory","report"]},{"url":"http://www.openwall.com/lists/oss-security/2026/06/29/17","tags":["web","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-56018","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-fvxv-8c37-qrc6"},{"url":"https://security.alpinelinux.org/vuln/CVE-2026-56018","tags":["advisory"]},{"url":"https://cpan.org/modules","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/56xxx/CVE-2026-56018.json","tags":["advisory"]},{"url":"https://github.com/bleargh45/JavaScript-Minifier-XS","tags":["package"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-56018","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2026-0283.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=35780","tags":["report"]},{"url":"https://www.openwall.com/lists/oss-security/2026/06/29/16","tags":["web"]},{"url":"https://www.openwall.com/lists/oss-security/2026/06/29/17","tags":["web"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/message/JRQ3MRFSD4VDM6LUSDFWM5CGXIVDZXIV/","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2026-56018","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-56018","tags":["report"]},{"url":"https://lists.security.metacpan.org/cve-announce/msg/41396069/","tags":["report"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2026-56017","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-56018","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2026-56018","title":"JavaScript::Minifier::XS versions before 0.16 for Perl leak memory on every call to minify(), allowing unbounded memory growth","description":"JavaScript::Minifier::XS versions before 0.16 for Perl leak memory on every call to minify(), allowing unbounded memory growth.\n\nIn 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.\n\nA 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.","status":"published","published":"2026-06-29T19:38:35.316Z","modified":"2026-06-29T22:24:36.94Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"adp"}],"cwes":["CWE-401","CWE-400"],"updated_at":"2026-11-02T13:37:02.780526Z"}],"euvd":[{"id":"EUVD-2026-40182","description":"JavaScript::Minifier::XS versions before 0.16 for Perl leak memory on every call to minify(), allowing unbounded memory growth.\n\nIn 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.\n\nA 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.","status":"published","published":"2026-06-29T19:38:35Z","modified":"2026-06-29T22:24:36Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T18:20:22.124605Z"}],"ghsa":[{"id":"GHSA-fvxv-8c37-qrc6","title":"JavaScript::Minifier::XS versions before 0.16 for Perl leak memory on every call to minify(),...","description":"JavaScript::Minifier::XS versions before 0.16 for Perl leak memory on every call to minify(), allowing unbounded memory growth.\n\nIn 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.\n\nA 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.","status":"published","published":"2026-06-29T21:32:15Z","modified":"2026-06-30T00:32:36Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-400"],"updated_at":"2026-11-02T15:09:04.017394Z"}],"nvd":[{"id":"CVE-2026-56018","description":"JavaScript::Minifier::XS versions before 0.16 for Perl leak memory on every call to minify(), allowing unbounded memory growth.\n\nIn 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.\n\nA 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.","status":"published","published":"2026-06-29T20:17:39.68Z","modified":"2026-10-25T21:10:00.77Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"secondary"}],"cwes":["CWE-400","CWE-401"],"updated_at":"2026-11-02T14:12:26.508751Z"}],"osv":[{"id":"ALPINE-CVE-2026-56018","description":"JavaScript::Minifier::XS versions before 0.16 for Perl leak memory on every call to minify(), allowing unbounded memory growth.\n\nIn 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.\n\nA 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.","status":"published","published":"2026-06-29T20:17:39.68Z","modified":"2026-10-01T02:17:49.351890461Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:27:50.764331Z"},{"id":"CVE-2026-56018","title":"JavaScript::Minifier::XS versions before 0.16 for Perl leak memory on every call to minify(), allowing unbounded memory growth","description":"JavaScript::Minifier::XS versions before 0.16 for Perl leak memory on every call to minify(), allowing unbounded memory growth.\n\nIn 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.\n\nA 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.","status":"published","published":"2026-06-29T19:38:35.316Z","modified":"2026-10-28T02:30:27.197195543Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-400","CWE-401"],"updated_at":"2026-11-02T15:45:11.609219Z"},{"id":"DEBIAN-CVE-2026-56018","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.","status":"published","published":"2026-06-29T20:17:39.68Z","modified":"2026-10-26T11:47:37.742572703Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:57.590991Z"},{"id":"UBUNTU-CVE-2026-56018","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.","status":"published","published":"2026-06-29T20:17:00Z","modified":"2026-10-17T12:59:10.210678884Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T16:56:41.382716Z"},{"id":"MGASA-2026-0283","title":"Updated perl-JavaScript-Minifier-XS package fixes security vulnerabilities","description":"The updated package fixes security vulnerabilities:\nJavaScript::Minifier::XS versions before 0.16 for Perl crash with a NULL\npointer dereference when the first meaningful token of the input is a\nslash. (CVE-2026-56017)\nJavaScript::Minifier::XS versions before 0.16 for Perl leak memory on\nevery call to minify(), allowing unbounded memory growth.\n(CVE-2026-56018)\n","status":"published","published":"2026-07-20T19:06:32Z","modified":"2026-07-20T19:15:05.498011407Z","updated_at":"2026-11-02T15:49:43.795591Z"},{"id":"openSUSE-SU-2026:11158-1","title":"perl-JavaScript-Minifier-XS-0.160.0-1.1 on GA media","description":"These are all security issues fixed in the perl-JavaScript-Minifier-XS-0.160.0-1.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2026-06-30T00:00:00Z","modified":"2026-07-01T09:45:08.786249438Z","updated_at":"2026-11-02T16:58:38.95195Z"}]}}
