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

Published Jun 10, 2026
·
Updated

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 Software

3 affected components
npm/image-size<=2.0.2
image-size image-size>=1.1.0<=1.2.1
image-size image-size>=2.0.0<=2.0.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Validate box size fields during parsing and fail/reject any image that contains a zero-valued box size to prevent the parser offset from becoming stuck in an infinite loop.

    image-size (JXL/HEIF parser) box_size_zero_handling = reject
  2. Compensating control

    Process untrusted JXL/HEIF images in an isolated worker or separate process with timeouts and resource limits so a crafted image cannot permanently block the main Node.js event loop; kill or restart the worker if it becomes unresponsive.

Event History

Jun 10, 2026
CVE Published
via MITRE·01:04 PM
Data Sourced
via MITRE·01:04 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-71329?

The severity of CVE-2025-71329 is classified as high with a score of 7.5.

2

How can I fix CVE-2025-71329?

To fix CVE-2025-71329, upgrade the image-size package to version 2.0.3 or later.

3

What type of vulnerability is CVE-2025-71329?

CVE-2025-71329 is a denial of service vulnerability caused by an infinite loop in the parser.

4

Which software is affected by CVE-2025-71329?

CVE-2025-71329 affects the npm package image-size version 2.0.2.

5

What can attackers achieve by exploiting CVE-2025-71329?

Attackers can exploit CVE-2025-71329 to indefinitely block the Node.js event loop, leading to service unavailability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203