~ / search / GHSA-w3rx-r6r6-pgpr

GHSA-w3rx-r6r6-pgpr

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

Source: GitHub Advisory Database (reviewed) High CVE-2025-71330

Packages

EcosystemPackageAffectedFixed in
npm image-size >= 0.6.3, < 2.0.3 2.0.3

Details

As written in the advisory (Markdown source, shown as plain 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 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.

References

External links from the advisory. They lead to third-party sites.