Skip to content
Heist/ feed
UnratedFix available

DEBIAN-CVE-2026-56018

Type: advisorySource: OSV1 source record

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.

Announced Source revision 1
Original source ↗

DEBIAN-CVE-2026-56018

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:DEBIAN-CVE-2026-56018

libjavascript-minifier-xs-perl

Source reference: /affected/0/package/name

Affected versions
0.15-1

Source reference: /affected/0/versions

0.16-1

Source reference: /affected/0/versions

Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

libjavascript-minifier-xs-perl

Source reference: /affected/1/package/name

Affected versions
0.15-1

Source reference: /affected/1/versions

0.16-1

Source reference: /affected/1/versions

Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

libjavascript-minifier-xs-perl

Source reference: /affected/2/package/name

Affected versions
0.15-1

Source reference: /affected/2/versions

Fixed versions
0.16-1

Source reference: /affected/2/ranges

Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "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"
    }
  }
]

Publisher severity

No explicit severity was provided.

Event
#57919 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement