# CVE-2025-71330: image-size 2.0.2 Denial of Service via Malformed ICNS Image Parsing

- Severity: High 8.7 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.53%, higher than 46% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-10T13:02:04.764Z
- Modified: 2026-11-08T14:00:27.525Z
- Also known as: GHSA-w3rx-r6r6-pgpr
- Weaknesses: CWE-835
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: VulnCheck

## 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 ICNS image buffer. Attackers can craft an ICNS buffer containing valid magic bytes and a zero-valued entry length field to trigger an infinite loop in the ICNS parser, as the offset is never incremented when the entry length field is 0, causing the while loop condition to remain true indefinitely.

(As written by CVE List.)

## Affected

- image-size image-size: from 1.1.0 up to 1.2.1; from 2.0.0 up to 2.0.2
- image-size (npm): from 0.6.3 before 2.0.3

## Every score

- VulnCheck: CVSS:4.0 8.7 High `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: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 High `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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X`

## 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-malformed-icns-image-parsing> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-71330> (advisory)
- <https://codeberg.org/image-size/image-size/commit/e6e83a5578961de81f6d5834d90fb7430d8f29a5> (web)
- <https://github.com/image-size/image-size> (package)

## Sources

- CVE List: [CVE-2025-71330](https://www.cve.org/CVERecord?id=CVE-2025-71330), CVE Terms of Use, modified 2026-11-08
- GitHub Advisory Database: [GHSA-w3rx-r6r6-pgpr](https://github.com/advisories/GHSA-w3rx-r6r6-pgpr), CC-BY-4.0, modified 2026-09-24
- NVD: [CVE-2025-71330](https://nvd.nist.gov/vuln/detail/CVE-2025-71330), Public domain, modified 2026-10-12

---

Page: https://cve.day/CVE-2025-71330 · Whole record: https://cve.day/CVE-2025-71330.json · Rebuilt by cve.day 2026-11-25T22:59:12.284Z
