# CVE-2025-71319: image-size 2.0.2 Denial of Service via Infinite Loop in JXL/HEIF Parser

- Priority: **Prioritise**
- Reason: Public exploit (reference, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2026-06-09 · Modified: 2026-11-08
- Aliases: GHSA-m5qc-5hw7-8vg7
- Record: https://cvemate.com/vulnerability/CVE-2025-71319 · JSON: https://cvemate.com/vulnerability/CVE-2025-71319/json

## Description

```text
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.
```

## Signals

- CVSS: 8.7 high (v4.0, CVE.org) 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
- EPSS: 0.729%, percentile 55.574%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- image-size image-size: ≥ 1.1.0, ≤ 1.2.1 \| ≥ 2.0.0, ≤ 2.0.2
- Npm image-size (Npm): ≥ 1.1.0, \< 1.2.1 \| ≥ 2.0.0, \< 2.0.2
- redhat discovery: 2.0
- redhat enterprise\_linux: 8.0
- redhat gatekeeper: 3.0
- redhat trusted\_artifact\_signer: ≥ 1.4, \< 1.4.2

## References

- <https://joshua.hu/image-size-infinite-loop-dos-vulnerabilities>
- <https://web.archive.org/web/20260224152152/https://github.com/image-size/image-size/pull/439>
- <https://www.vulncheck.com/advisories/image-size-denial-of-service-via-infinite-loop-in-jxl-heif-parser>
- <https://access.redhat.com/security/cve/CVE-2025-71319>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2487296>
- <https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-71319.json>
- <https://access.redhat.com/errata/RHSA-2026:33313>
- <https://access.redhat.com/errata/RHSA-2026:37272>
- <https://github.com/image-size/image-size/security/advisories/GHSA-m5qc-5hw7-8vg7>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-71319>
- <https://github.com/image-size/image-size/commit/8994131c7c3ee8da1699e04700c95e0e683a0c68>
- <https://github.com/image-size/image-size>

---

Data as of 2026-12-05T03:02:44.980Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
