CVE-2025-71329
Received Received - Intake
Image DoS in image-size Library via Zero-Size Box

Publication date: 2026-06-10

Last updated on: 2026-06-10

Assigner: VulnCheck

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-10
Last Modified
2026-06-10
Generated
2026-06-10
AI Q&A
2026-06-10
EPSS Evaluated
N/A
NVD
EUVD
Affected Vendors & Products
Currently, no data is known.
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-835 The product contains an iteration or loop with an exit condition that cannot be reached, i.e., an infinite loop.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

CVE-2025-71329 is a denial of service vulnerability in the image-size library (versions up to 2.0.2) that allows remote attackers to cause an application to hang indefinitely.

The vulnerability occurs when a specially crafted image buffer contains a zero-valued size field in a recognized box-type, such as in JXL, HEIF, or ICNS image parsers.

This zero size causes the parser's offset to never advance, triggering an infinite loop that permanently blocks the Node.js event loop and causes the application to hang.

Impact Analysis

This vulnerability can cause a denial of service (DoS) condition by making the affected application hang indefinitely.

An attacker can exploit this by sending a maliciously crafted image file with a zero-sized box or entry, which triggers an infinite loop in the image parser.

As a result, the Node.js event loop is permanently blocked, preventing the application from processing further requests or tasks, which can lead to service outages and resource exhaustion.

Detection Guidance

This vulnerability can be detected by monitoring for applications using the image-size library versions 1.1.0 to 1.2.1 and 2.0.0 to 2.0.2, which are vulnerable to denial of service via infinite loops triggered by specially crafted image files.

Detection can involve observing if the Node.js event loop is permanently blocked or if the application hangs indefinitely when processing image files, especially those in JXL, HEIF, JP2, or ICNS formats.

To detect exploitation attempts or the presence of crafted images, you can use commands to monitor running Node.js processes for hangs or high CPU usage, and inspect logs for errors related to image parsing.

  • Use process monitoring commands like `top` or `htop` to identify Node.js processes consuming excessive CPU or stuck.
  • Use `lsof -p <pid>` to check open files by the Node.js process to identify if it is processing suspicious image files.
  • Use network monitoring tools like `tcpdump` or `wireshark` to capture image file transfers and analyze them for suspicious zero-sized box fields.
  • If you have access to the source or logs, add debugging or logging around image-size library calls to detect when an image with a zero-sized box is processed.
Mitigation Strategies

The immediate mitigation step is to upgrade the image-size library to a version later than 2.0.2 where the vulnerability has been fixed.

If upgrading is not immediately possible, consider implementing input validation to reject images with zero-sized boxes or entries before they are processed by the vulnerable library.

Additionally, monitor your Node.js applications for hangs or high CPU usage that could indicate exploitation attempts.

Limit exposure by restricting the sources from which image files are accepted, and apply network-level controls to block suspicious traffic.

Compliance Impact

The provided information does not specify any direct impact of CVE-2025-71329 on compliance with common standards and regulations such as GDPR or HIPAA.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2025-71329. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart