-
Notifications
You must be signed in to change notification settings - Fork 0
bump(deps): update dependency image-size to v1.2.1 [security] #338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
renovate
wants to merge
1
commit into
main
Choose a base branch
from
renovate/npm-image-size-vulnerability
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
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
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
4a0aa1f to
eef47c7
Compare
eef47c7 to
61ddcfb
Compare
61ddcfb to
6b94e9e
Compare
6b94e9e to
dae6c49
Compare
dae6c49 to
bce6ce3
Compare
bce6ce3 to
8049453
Compare
8049453 to
d9321ee
Compare
d9321ee to
2d65539
Compare
2d65539 to
17180c8
Compare
17180c8 to
6a0adac
Compare
6a0adac to
34a38e0
Compare
34a38e0 to
838737e
Compare
838737e to
79c9851
Compare
79c9851 to
34cdaa2
Compare
34cdaa2 to
6ab16a0
Compare
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.1.1→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
v1.2.0Compare Source
This release adds support for JPEG-XL ( #409 )
Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, 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.