CVE-2025-71319
HIGHimage-size < 1.2.1, 2.0.2 - Denial of Service via Infinite Loop in findBox Function
Title source: cnaDescription
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.
References (5)
Core 5
Core References
Vendor Advisory vendor-advisory
GitHub Security Advisory (GHSA-m5qc-5hw7-8vg7)
https://github.com/image-size/image-size/security/advisories/GHSA-m5qc-5hw7-8vg7
Third Party Advisory third-party-advisory
https://www.vulncheck.com/advisories/image-size-denial-of-service-via-infinite-loop-in-findbox-function
Exploit technical-description
exploit
https://joshua.hu/image-size-infinite-loop-dos-vulnerabilities
Patch patch
https://web.archive.org/web/20260224152152/https://github.com/image-size/image-size/pull/439
Third Party Advisory third-party-advisory
https://www.vulncheck.com/advisories/image-size-denial-of-service-via-infinite-loop-in-jxl-heif-parser
Scores
CVSS v3
7.5
EPSS
0.0053
EPSS Percentile
40.5%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CISA SSVC
Vulnrichment
Exploitation
poc
Automatable
yes
Technical Impact
partial
Details
CWE
CWE-835
Status
published
Products (7)
image-size/image-size
< 2.0.2
image-size/image-size
1.1.0 - 1.2.1
image-size/image-size
1.2.1
image-size/image-size
2.0.0 - 2.0.2
image-size/image-size
2.0.2
npm/image-size
1.1.0 - 1.2.1npm
npm/image-size
2.0.0 - 2.0.2npm
Published
Jun 09, 2026
Tracked Since
Jun 10, 2026