chore(deps): update dependency file-type to v21.3.1 [security] - abandoned#584
Open
renovate[bot] wants to merge 2 commits intomainfrom
Open
chore(deps): update dependency file-type to v21.3.1 [security] - abandoned#584renovate[bot] wants to merge 2 commits intomainfrom
renovate[bot] wants to merge 2 commits intomainfrom
Conversation
Contributor
Author
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. |
Contributor
Author
Autoclosing SkippedThis PR has been flagged for autoclosing. However, it is being skipped due to the branch being already modified. Please close/delete it manually or report a bug if you think this is in error. |
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:
21.3.0→21.3.1GitHub Vulnerability Alerts
CVE-2026-31808
Impact
A denial of service vulnerability exists in the ASF (WMV/WMA) file type detection parser. When parsing a crafted input where an ASF sub-header has a
sizefield of zero, the parser enters an infinite loop. Thepayloadvalue becomes negative (-24), causingtokenizer.ignore(payload)to move the read position backwards, so the same sub-header is read repeatedly forever.Any application that uses
file-typeto detect the type of untrusted/attacker-controlled input is affected. An attacker can stall the Node.js event loop with a 55-byte payload.Patches
Fixed in version 21.3.1. Users should upgrade to >= 21.3.1.
Workarounds
Validate or limit the size of input buffers before passing them to
file-type, or run file type detection in a worker thread with a timeout.References
Reporter
crnkovic@lokvica.com
Release Notes
sindresorhus/file-type (file-type)
v21.3.1Compare Source
319abf8Configuration
📅 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.
Note
Low Risk
Low risk dependency patch update; behavior changes should be limited to file type detection on malformed/edge-case media inputs.
Overview
Updates the
file-typedependency to21.3.1, pulling in the upstream fix for an ASF (WMV/WMA) parser infinite-loop that could be triggered by malformed input.Change is primarily a dependency/lockfile refresh (no functional code changes beyond the updated transitive package behavior).
Written by Cursor Bugbot for commit 37c53b0. This will update automatically on new commits. Configure here.