CVE-2025-71329

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

Published Jun 10, 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.

Analysis

AI-generated

Technical impact

image-size through 2.0.2 has a remote denial of service vulnerability that allows attackers to block the Node.js event loop indefinitely. By sending a crafted image buffer that contains a box with a zero‑valued size field in the JXL or HEIF format, the parser enters an infinite loop that never advances the offset pointer, effectively hanging the application for the remainder of its lifetime. The weakness is an uncontrolled loop (CWE‑835) and can compromise availability for any service that uses image-size for image processing.

Affected Systems

The affected product is the image-size library, version 2.0.2 and earlier. Any Node.js application that imports the library for parsing JXL or HEIF images can be impacted.

Risk and Exploitability

The CVSS score of 8.7 indicates a high impact denial of service scenario. No EPSS value is provided and the vulnerability is not listed in the CISA KEV catalog, but the lack of an exploitation probability score does not negate the risk of immediate exploitation because the attacker only needs to supply a specially crafted image via the application’s normal image processing path. Since the vulnerable code executes in the main event loop of Node.js, the exploit does not require elevated privileges and can be triggered simply by any request that results in the parser being invoked.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade image-size to the corrected release that patches the zero‑size box check, such as the version released in pull request 439.
  • If an upgrade cannot be performed immediately, validate image uploads first to ensure that no box has a zero size before passing the buffer to the parser; reject or sanitize such inputs.
  • Use a process manager or supervisor to automatically restart the Node.js process if the event loop is detected to be blocked or the application becomes unresponsive.

Generated by OpenCVE AI on June 10, 2026 at 14:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-5p2g-fcmc-qvqq image-size: JXL and HEIF parsers allow denial of service through infinite loops
History
Type Values Removed Values Added
CPEs cpe:2.3:a:image-size:image-size:*:*:*:*:*:node.js:*:*
Type Values Removed Values Added
First Time appeared Image-size
Image-size image-size
CPEs cpe:2.3:a:image-size:image-size:*:*:*:*:*:*:*:*
Vendors & Products Image-size
Image-size image-size
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
Metrics ssvc

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

Type Values Removed Values Added
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.
Title image-size 2.0.2 Denial of Service via Infinite Loop in JXL/HEIF Parser
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
  • CWE-835

    Loop with Unreachable Exit Condition ('Infinite Loop')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 8, 2026, 2:00 PM
Reserved
Jun 10, 2026, 12:57 PM
Status
Analyzed
Published
Jun 10, 2026, 2:16 PM
Modified
Oct 12, 2026, 10:10 PM
Severity
Moderate
Public date
Jun 10, 2026, 1:04 PM