CVE-2025-71330: image-size 2.0.2 Denial of Service via Malformed ICNS Image Parsing

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 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.

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. Remove

    Remove image-size from your environment.

    Uninstall the image-size package or stop using its ICNS parsing functionality until a secure update is available. Versions through 2.0.2 are reported vulnerable.

  2. Compensating control

    Do not accept or process ICNS images from untrusted sources. Run ICNS parsing in an isolated process/container with strict CPU and execution-time limits so a hung parser cannot permanently block the main Node.js event loop.

  3. Compensating control

    Validate ICNS buffers before parsing and reject buffers that contain a zero-valued entry length field (the condition that can trigger an infinite loop in the parser).

  4. Operational

    Search the codebase and dependency manifests for usages of image-size (including transitive dependencies). If found, remove or mitigate usage until a patched release is available. Restart any Node.js processes that become unresponsive due to ICNS parsing.

Event History

Jun 10, 2026
CVE Published
via MITRE·01:02 PM
Data Sourced
via MITRE·01:02 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-71330?

The severity of CVE-2025-71330 is rated as high with a score of 7.5.

2

What type of vulnerability is CVE-2025-71330?

CVE-2025-71330 is a denial of service vulnerability.

3

How does CVE-2025-71330 affect Node.js applications?

CVE-2025-71330 allows attackers to block the Node.js event loop by exploiting malformed ICNS image buffers.

4

Which version of image-size is affected by CVE-2025-71330?

CVE-2025-71330 affects image-size version 2.0.2.

5

How can I fix CVE-2025-71330?

To fix CVE-2025-71330, update the image-size package to a version that is not vulnerable.

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