Record 2.0.3 as the first patched version for GHSA-w3rx-r6r6-pgpr (image-size ICNS) - #9580
Open
DrDustinEdwards wants to merge 1 commit into
Conversation
github-actions
Bot
changed the base branch from
main
to
DrDustinEdwards/advisory-improvement-9580
September 16, 2026 02:55
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Records
2.0.3as the first patched version, replacinglast_affected: 2.0.2, and adds the upstream fix commit as aFIXreference.Why the range needs changing
The advisory currently ends at
last_affected: 2.0.2, which was accurate when it was published: 2.0.2 was the newest version in existence. A fix has since been released, so the range can now carry the stronger statement, andfixedis the field remediation tooling reads to construct an upgrade target. With onlylast_affectedpresent, automated remediation has nothing to aim at and opens nothing, which is how this came to my attention.The fix
Upstream commit
e6e83a5578961de81f6d5834d90fb7430d8f29a5, "fix infinite loops to satisfy security theatre", toucheslib/types/icns.ts,lib/types/jxl.tsandlib/types/heif.tsand adds three regression fixtures, one of which isspecs/images/invalid/icns-zero-length-entry.icns, the exact input this advisory describes. It is the commit immediately before the2.0.3release commitfa82e6b9eeb33ad871a6f753319776b602161f85.Verified in the bytes published to npm rather than inferred from the version number.
image-size@2.0.2has:A zero entry length never advances
imageOffset, which is the loop this advisory describes.image-size@2.0.3adds the guard that makes the loop always advance:2.0.3is the first release containing it:2.0.0,2.0.1and2.0.2do not, and2.0.4differs from2.0.3only by an unrelated bounds check in the ICO parser.One thing a reviewer should know
The project has moved from GitHub to Codeberg. The
PACKAGEreference still points atgithub.com/image-size/image-size, whose last push is 2026-06-03 and whose newest release isv2.0.2; the pull request this advisory cites resolves only through itsweb.archive.orgsnapshot. The active repository iscodeberg.org/image-size/image-size, which is where the fix commit lives and why theFIXreference points there.2.0.3and2.0.4were published to npm on 2026-09-14 by the same maintainer account that published2.0.2, and carry no upstream git tags. I have left thePACKAGEreference alone, since changing it is a separate improvement to a separate field, but it looks stale and you may want it.The sibling advisory GHSA-5p2g-fcmc-qvqq covers the JXL and HEIF loops fixed by the same commit. It is submitted separately, per the one-advisory-per-pull-request rule in CONTRIBUTING.