CVE-2025-71329GHSA-5p2g-fcmc-qvqq
image-size: JXL and HEIF parsers allow denial of service through infinite loops
image-size image-sizenpmLibraries & packages
CVSS
8.7HighExploitationPublic exploit codeCISA's assessment says proof of concept code is public, assessed 10 Jun 2026. Not in the KEV catalogCISA via CVE List
Exploit odds (EPSS)0.43%Chance of exploitation activity in the next 30 days, higher than 36% of CVEs. Scored 23 Oct 2026FIRST EPSS
What fixes it
- 2.0.3image-size, npmGitHub
npm install image-size@2.0.3
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
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.
Text from CVE List
Affected versions 4
- image-size, npm>= 1.2.0, <= 2.0.2GitHub
- image-sizeaffected: 1.1.0 through 1.2.1CVE List
- image-sizeaffected: 2.0.0 through 2.0.2CVE List
- image-size, npmfrom 1.2.0, fixed in 2.0.3OSV
References 6
- codeberg.org/image-size/image-size/commit/e6e83a5578961de81f6d5834d90fb7430d8f29a5Fixvia GitHub
- vulncheck.com/advisories/image-size-denial-of-service-via-infinite-loop-in-jxl-heif-parserAdvisoryvia CVE List
- github.com/advisories/GHSA-5p2g-fcmc-qvqqAdvisoryvia GitHub
- joshua.hu/image-size-infinite-loop-dos-vulnerabilitiesExploitvia CVE List
- nvd.nist.gov/vuln/detail/CVE-2025-71329Referencevia GitHub
- web.archive.org/web/20260224152152/https://github.com/image-size/image-size/pull/439Referencevia CVE List