CVE-2025-71330

image-size 2.0.2 Denial of Service via Malformed ICNS Image Parsing

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 ICNS image buffer. Attackers can craft an ICNS buffer containing valid magic bytes and a zero-valued entry length field to trigger an infinite loop in the ICNS parser, as the offset is never incremented when the entry length field is 0, causing the while loop condition to remain true indefinitely.

Analysis

AI-generated

Technical impact

The vulnerability is an infinite loop caused by parsing an ICNS image buffer that contains a zero‑valued entry length field. When the image-size library (v2.0.2 and earlier) reads such a buffer, the offset never advances, the while‑loop condition stays true, and the Node.js event loop is permanently blocked. The result is a complete denial of service to any application that imports the affected library and processes the malformed image.

Affected Systems

Any Node.js application that depends on the image-size package version 2.0.2 or earlier is susceptible. The library propagates through any project that imports it, exposing all environments that run the Node.js code to the risk.

Risk and Exploitability

The CVSS v3.1 score of 8.7 reflects the high severity of the denial of service. EPSS data is unavailable and the vulnerability is not currently listed in the CISA KEV catalog. Attackers can remotely exploit the flaw by delivering a specially crafted ICNS buffer—typically via a file upload, API payload, or embedded data—to a running application that uses image-size. The lack of checks on the entry length makes the flaw trivially exploitable for anyone who can influence the input.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the image-size package to v2.0.3 or later.
  • Validate ICNS image data before parsing, rejecting or correcting any entry with a length of zero.
  • Monitor Node.js event loop usage and consider process restarts or clustering to contain any accidental denial of service.

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

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-w3rx-r6r6-pgpr image-size: ICNS parser allows denial of service through an infinite loop
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 ICNS image buffer. Attackers can craft an ICNS buffer containing valid magic bytes and a zero-valued entry length field to trigger an infinite loop in the ICNS parser, as the offset is never incremented when the entry length field is 0, causing the while loop condition to remain true indefinitely.
Title image-size 2.0.2 Denial of Service via Malformed ICNS Image Parsing
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:02 PM