Skip to content
Heist/ feed
Back to feed
HighFix available

libjavascript-minifier-xs-perl — security advisory

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

JavaScript::Minifier::XS versions before 0.16 for Perl crash with a NULL pointer dereference when the first meaningful token of the input is a slash. The regexp versus division disambiguator in JsTokenizeString (XS.xs) inspects the previous token's last byte to choose between a regexp literal and a division operator. When a slash is the first meaningful token, with the start of input or only whitespace and comments before it, there is no valid preceding token: the walk back over whitespace and comment nodes runs off the head of the node list to NULL, and the byte lookup reads through a NULL contents pointer at an underflowed length index. The following identifier check dereferences the same NULL pointer. The crash is reachable through the public minify() API, so input as small as a single slash byte crashes the calling process. A service that minifies untrusted or third-party JavaScript can be crashed by a remote request, 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-56017
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 12:18 UTC · Revision 2

Source evidence

DEBIAN-CVE-2026-56017

core-osv · Original source

Published 29 Jun 2026, 20:17 UTC

JavaScript::Minifier::XS versions before 0.16 for Perl crash with a NULL pointer dereference when the first meaningful token of the input is a slash. The regexp versus division disambiguator in JsTokenizeString (XS.xs) inspects the previous token's last byte to choose between a regexp literal and a division operator. When a slash is the first meaningful token, with the start of input or only whitespace and comments before it, there is no valid preceding token: the walk back over whitespace and comment nodes runs off the head of the node list to NULL, and the byte lookup reads through a NULL contents pointer at an underflowed length index. The following identifier check dereferences the same NULL pointer. The crash is reachable through the public minify() API, so input as small as a single slash byte crashes the calling process. A service that minifies untrusted or third-party JavaScript can be crashed by a remote request, causing denial of service.

osv:DEBIAN-CVE-2026-56017

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": "47becca0d1284198d3189529b1ec473e35519f0b158b6eac776124b02c8c365c",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-56017",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2026-56017",
    "summary": "JavaScript::Minifier::XS versions before 0.16 for Perl crash with a NULL pointer dereference when the first meaningful token of the input is a slash. The regexp versus division disambiguator in JsTokenizeString (XS.xs) inspects the previous token's last byte to choose between a regexp literal and a division operator. When a slash is the first meaningful token, with the start of input or only whitespace and comments before it, there is no valid preceding token: the walk back over whitespace and comment nodes runs off the head of the node list to NULL, and the byte lookup reads through a NULL contents pointer at an underflowed length index. The following identifier check dereferences the same NULL pointer. The crash is reachable through the public minify() API, so input as small as a single slash byte crashes the calling process. A service that minifies untrusted or third-party JavaScript can be crashed by a remote request, causing denial of service.",
    "evidence": "osv:DEBIAN-CVE-2026-56017",
    "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-56017",
      "aliases": [
        "DEBIAN-CVE-2026-56017"
      ],
      "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-56017.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-56017.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-56017.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-26T11:47:32.998744393Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-56017"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2026-56017"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-56017",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 450816,
  "published_at": "2026-06-29T20:17:39.57+00:00"
}