Skip to content
Heist/ feed
HighFix available

image-size: JXL and HEIF parsers allow denial of service through infinite loops

Type: advisorySource: OSV1 source record

image-size through 2.0.2 contains a denial of service vulnerability that allows remote attackers to permanently block the Node.js event loop by supplying a specially crafted image buffer with a zero-valued size field in a recognized box-type. Attackers can trigger an infinite loop in the JXL or HEIF image parsers by providing a crafted image containing a box with a size of zero, causing the offset to never advance and permanently hanging the application.

Announced Source revision 1
Original source ↗

GHSA-5p2g-fcmc-qvqq

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:GHSA-5p2g-fcmc-qvqq

image-size

Source reference: /affected/0/package/name

Affected versions
Not stated in this record
Fixed versions
2.0.3

Source reference: /affected/0/ranges

Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "ranges": [
      {
        "type": "SEMVER",
        "events": [
          {
            "introduced": "1.2.0"
          },
          {
            "fixed": "2.0.3"
          }
        ]
      }
    ],
    "package": {
      "name": "image-size",
      "purl": "pkg:npm/image-size",
      "ecosystem": "npm"
    },
    "database_specific": {
      "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-5p2g-fcmc-qvqq/GHSA-5p2g-fcmc-qvqq.json",
      "last_known_affected_version_range": "<= 2.0.2"
    }
  }
]
Related CVEs
CVE-2025-71329

Source reference: /aliases

Publisher severity

high

Source reference: /database_specific/severity

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