Vulnerability · Published Jun 10, 2026 · Assigned by VulnCheck
CVE-2025-71329image-size 2.0.2 Denial of Service via Infinite Loop in JXL/HEIF Parser
High 7.5
In plain English
A high-severity infinite loop in image-size from image-size. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 37% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | image-size | 2.0.3 | GHSA-5p2g-fcmc-qvqq |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| image-size | image-size | 1.1.0 – through 1.2.12.0.0 – through 2.0.2 |
Weakness: CWE-835 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://joshua.hu/image-size-infinite-loop-dos-vulnerabilities technical-description, exploit
- https://web.archive.org/web/20260224152152/https://github.com/image-size/image-size/pull/439 issue-tracking
- https://www.vulncheck.com/advisories/image-size-denial-of-service-via-infinite-loop-in-jxl-heif-parser third-party-advisory