8.7high
image-size 2.0.2 Denial of Service via Infinite Loop in JXL/HEIF Parser
- Severity
- 8.7high CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.53% (higher than 46% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
- Also known as
- GHSA-5p2g-fcmc-qvqq
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
| Product or package | Versions | Reported by |
|---|---|---|
| image-size image-size | from 1.1.0 up to 1.2.1, from 2.0.0 up to 2.0.2 | CVE List, NVD |
| image-size (npm) | from 1.2.0 before 2.0.3 | GitHub Advisory Database |
All scores
| VulnCheck | 8.7high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
| VulnCheck | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.
What each source says
CVE List
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.
NVD (es)
image-size hasta la versión 2.0.2 contiene una vulnerabilidad de denegación de servicio que permite a atacantes remotos bloquear permanentemente el bucle de eventos de Node.js al proporcionar un búfer de imagen especialmente diseñado con un campo de tamaño con valor cero en un tipo de caja reconocido. Los atacantes pueden desencadenar un bucle infinito en los analizadores de imágenes JXL o HEIF al proporcionar una imagen manipulada que contenga una caja con un tamaño de cero, lo que provoca que el desplazamiento nunca avance y cuelgue permanentemente la aplicación.
References
| https://joshua.hu/image-size-infinite-loop-dos-vulnerabilities | exploit, technical-description, third-party-advisory, web | |
| https://web.archive.org/web/20260224152152/https://github.com/image-size/image-size/pull/439 | issue-tracking, patch, web | |
| https://www.vulncheck.com/advisories/image-size-denial-of-service-via-infinite-loop-in-jxl-heif-parser | third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2025-71329 | advisory | |
| https://codeberg.org/image-size/image-size/commit/e6e83a5578961de81f6d5834d90fb7430d8f29a5 | web | |
| https://github.com/image-size/image-size | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-71329 changed 2026-11-08 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-5p2g-fcmc-qvqq changed 2026-09-24 | CC-BY-4.0 |
| NVD | CVE-2025-71329 changed 2026-10-12 | Public domain |