Skip to content
Heist/ feed
Back to feed
HighFix available

libjavascript-minifier-xs-perl — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2026-56018

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.

Products
libjavascript-minifier-xs-perl
Affected versions
0.15-1, 0.16-1
Fixed versions
0.16-1
CVEs
CVE-2026-56018
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 12:22 UTC · Revision 2

Source evidence

DEBIAN-CVE-2026-56018

core-osv · Original source

Published 29 Jun 2026, 20:17 UTC

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.

osv:DEBIAN-CVE-2026-56018

libjavascript-minifier-xs-perl

Fixed versions: Not specified

libjavascript-minifier-xs-perl

Fixed versions: Not specified

libjavascript-minifier-xs-perl

Fixed versions: 0.16-1

Complete source record
{
  "id": "4ad60086c0faef3cf2ffe139d9c2e1548b006a80168435e35e46efbb4124df83",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-56018",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2026-56018",
    "summary": "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.",
    "evidence": "osv:DEBIAN-CVE-2026-56018",
    "products": [
      {
        "name": {
          "value": "libjavascript-minifier-xs-perl",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.15-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.16-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libjavascript-minifier-xs-perl",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.15-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.16-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libjavascript-minifier-xs-perl",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.16-1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "0.15-1",
            "evidence": "/affected/2/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "DEBIAN-CVE-2026-56018",
      "aliases": [
        "DEBIAN-CVE-2026-56018"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libjavascript-minifier-xs-perl",
            "purl": "pkg:deb/debian/libjavascript-minifier-xs-perl?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "versions": [
            "0.15-1",
            "0.16-1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-56018.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libjavascript-minifier-xs-perl",
            "purl": "pkg:deb/debian/libjavascript-minifier-xs-perl?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "versions": [
            "0.15-1",
            "0.16-1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-56018.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.16-1"
                }
              ]
            }
          ],
          "package": {
            "name": "libjavascript-minifier-xs-perl",
            "purl": "pkg:deb/debian/libjavascript-minifier-xs-perl?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "versions": [
            "0.15-1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-56018.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-26T11:47:37.742572703Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-56018"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2026-56018"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-56018",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 450927,
  "published_at": "2026-06-29T20:17:39.68+00:00"
}