CVE-2025-71319

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

Published Jun 9, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-m5qc-5hw7-8vg7 image-size Denial of Service via Infinite Loop during Image Processing
History
Type Values Removed Values Added
First Time appeared Image-size
Image-size image-size
CPEs cpe:2.3:a:image-size:image-size:*:*:*:*:*:node.js:*:*
Vendors & Products Image-size
Image-size image-size
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description image-size 1.1.0 before 1.2.1 and 2.0.0 before 2.0.2 contain a denial of service vulnerability in the findBox function when processing specially crafted images with zero-sized boxes. Remote attackers can cause application hang by supplying malicious JXL, HEIF, or JP2 image files with box size zero, triggering infinite loops during image validation. 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.
Title image-size < 1.2.1, 2.0.2 - Denial of Service via Infinite Loop in findBox Function image-size 2.0.2 Denial of Service via Infinite Loop in JXL/HEIF Parser
References
Type Values Removed Values Added
First Time appeared Image Sizes Project
Image Sizes Project image Sizes
Vendors & Products Image Sizes Project
Image Sizes Project image Sizes
Type Values Removed Values Added
Description image-size 1.1.0 before 1.2.1 and 2.0.0 before 2.0.2 contain a denial of service vulnerability in the findBox function when processing specially crafted images with zero-sized boxes. Remote attackers can cause application hang by supplying malicious JXL, HEIF, or JP2 image files with box size zero, triggering infinite loops during image validation.
Title image-size < 1.2.1, 2.0.2 - Denial of Service via Infinite Loop in findBox Function
Weaknesses CWE-835
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 8, 2026, 2:00 PM
Reserved
Jun 8, 2026, 8:44 PM
Status
Analyzed
Published
Jun 9, 2026, 9:17 PM
Modified
Jul 24, 2026, 8:19 PM
Severity
Important
Public date
Jun 9, 2026, 7:57 PM