Vulnerability · Published Jun 9, 2026 · Assigned by VulnCheck

CVE-2025-71319image-size 2.0.2 Denial of Service via Infinite Loop in JXL/HEIF Parser

High 7.5

In plain English

A high-severity infinite loop in image-size from image-size. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 54% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.7%top 45.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmimage-size1.2.1GHSA-m5qc-5hw7-8vg7
npmimage-size2.0.2GHSA-m5qc-5hw7-8vg7

Affected products (as reported)

VendorProductVersions
image-size image-size 1.1.0 – through 1.2.12.0.0 – through 2.0.2

Weakness: CWE-835 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References