Infinite loop Affecting file-type package, versions >=13.0.0 <21.3.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (14th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-FILETYPE-15456217
  • published11 Mar 2026
  • disclosed10 Mar 2026
  • creditcrnkovic

Introduced: 10 Mar 2026

NewCVE-2026-31808  (opens in a new tab)
CWE-835  (opens in a new tab)

How to fix?

Upgrade file-type to version 21.3.1 or higher.

Overview

Affected versions of this package are vulnerable to Infinite loop in the FileTypeParser class. This is triggered when the ASF (WMV/WMA) parser receives input including an ASF sub-header with a size value of 0. An attacker can interrupt service with a 55-byte payload.

References

CVSS Base Scores

version 4.0
version 3.1