Update dependency image-size to v1.2.1 [SECURITY]#467
Open
renovate[bot] wants to merge 1 commit intomainfrom
Open
Update dependency image-size to v1.2.1 [SECURITY]#467renovate[bot] wants to merge 1 commit intomainfrom
renovate[bot] wants to merge 1 commit intomainfrom
Conversation
b8157af to
a208db7
Compare
a208db7 to
c330e67
Compare
c330e67 to
760c541
Compare
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.
This PR contains the following updates:
1.2.0→1.2.1GitHub Vulnerability Alerts
GHSA-m5qc-5hw7-8vg7
Summary
image-sizeis vulnerable to a Denial of Service vulnerability when processing specially crafted images.The issue occurs because of an infine loop in
findBoxwhen processing certain images with a box with size0.Details
If the first bytes of the input does not match any bytes in
firstBytes, then the package tries to validate the image using other handlers:Some handlers that call
findBoxto validate or calculate the image size arejxl,heifandjp2.JXLhandler callsfindBoxinsidevalidate. To reach thefindBoxcall, the value at position4:8should be'JXL 'findBoxcan lead to an infinite loop because the value ofbox.sizeis0, thus theoffsetvariable is not updated. Below relevant code with comments (using one of thePAYLOADbelow as example):A similar issue occurs for
HEIFandJP2handlers:PoC
Usage:
node main.js poc1|poc2image-size@2.0.1image-size@1.2.0image-size@1.1.1Impact
Denial of Service
Release Notes
image-size/image-size (image-size)
v1.2.1Compare Source
Fixes
640a67dFull Changelog: image-size/image-size@v1.2.0...v1.2.1
Configuration
📅 Schedule: Branch creation - "" in timezone Europe/Berlin, Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.