Advisory

GHSA-w3rx-r6r6-pgpr

Also known as: CVE-2025-71330

Summary

image-size: ICNS parser allows denial of service through an infinite loop

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-06-10 15:31 UTC
Modified
2026-09-24 18:30 UTC

Affected packages and fixes

image-size

npm · All systems

Affected

  • introduced 0.6.3, fixed 2.0.3 (semver)

Fixed versions

2.0.3

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences