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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| image-size | image-size | 1.1.0 – ≤ 1.2.1, 2.0.0 – ≤ 2.0.2 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | langfuse-3-worker | No fix yet | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
lcf2212dev/image-size-next ★ 8 · Aug 10, 2026
Community-maintained fork of image-size with fixes for CVE-2025-71329 and CVE-2025-71330
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | image-size | >= 1.2.0, < 2.0.3 | 2.0.3 | GHSA-5p2g-fcmc-qvqq |
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 patch
- https://www.vulncheck.com/advisories/image-size-denial-of-service-via-infinite-loop-in-jxl-heif-parser third-party-advisory