Skip to content

chore(deps): update dependency file-type to v21.3.1 [security] - abandoned#584

Open
renovate[bot] wants to merge 2 commits intomainfrom
renovate/npm-file-type-vulnerability
Open

chore(deps): update dependency file-type to v21.3.1 [security] - abandoned#584
renovate[bot] wants to merge 2 commits intomainfrom
renovate/npm-file-type-vulnerability

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Mar 11, 2026

This PR contains the following updates:

Package Change Age Confidence
file-type 21.3.021.3.1 age confidence

GitHub 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 size field of zero, the parser enters an infinite loop. The payload value becomes negative (-24), causing tokenizer.ignore(payload) to move the read position backwards, so the same sub-header is read repeatedly forever.

Any application that uses file-type to 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

  • Fix commit: 319abf871b50ba2fa221b4a7050059f1ae096f4f

Reporter

crnkovic@lokvica.com


Release Notes

sindresorhus/file-type (file-type)

v21.3.1

Compare Source

  • Fix infinite loop in ASF parser on malformed input 319abf8


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.


  • If you want to rebase/retry this PR, check this box

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-type dependency to 21.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.

@renovate renovate Bot added the dependencies Pull requests that update a dependency file label Mar 11, 2026
@renovate
Copy link
Copy Markdown
Contributor Author

renovate Bot commented Mar 11, 2026

Edited/Blocked Notification

Renovate 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.

⚠️ Warning: custom changes will be lost.

@renovate renovate Bot changed the title chore(deps): update dependency file-type to v21.3.1 [security] chore(deps): update dependency file-type to v21.3.1 [security] - abandoned Mar 27, 2026
@renovate
Copy link
Copy Markdown
Contributor Author

renovate Bot commented Mar 27, 2026

Autoclosing Skipped

This 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants