CVE-2025-71329: image-size · JXL and HEIF parsers allow denial of service through infinite loops
Affects image-sizeSource GCVE Database
Not known to be exploited · CVSS 7.5 High : upgrade to 2.0.3 soon.
Data as of 6 Nov 2026, 23:24 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 37% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 2.0.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 10 Jun 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: evidence found.
Public exploit code: GitHub proofs of concept
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), GitHub proofs of concept, the Metasploit, Exploit-DB and nuclei-templates index as of 6 Nov 2026.
What to do
Upgrade image-size to 2.0.3.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmimage-size | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
If you cannot patch yet, avoid processing untrusted JXL or HEIF images with the vulnerable versions of image-size to mitigate the risk of denial of service.
Description
The image-size package up to version 2.0.2 contains a denial of service vulnerability in its JXL and HEIF image parsers. This flaw allows remote attackers to cause an infinite loop by supplying a specially crafted image buffer with a zero-valued size field in a recognized box-type. The infinite loop causes the Node.js event loop to hang permanently, resulting in denial of service.
References
- nvd.nist.gov/vuln/detail/CVE-2025-71329 (opens in a new tab)
- github.com/image-size/image-size (opens in a new tab)
- joshua.hu/image-size-infinite-loop-dos-vulnerabilities (opens in a new tab)
- web.archive.org/web/20260224152152/https://github.com/image-size/image-size/pull/439 (opens in a new tab)
- vulncheck.com/advisories/image-size-denial-of-service-via-infinite-loop-in-jxl-heif-parser (opens in a new tab)
- codeberg.org/image-size/image-size/commit/e6e83a5578961de81f6d5834d90fb7430d8f29a5 (opens in a new tab)