Live threats

All CVEs / Sindresorhus

CVE-2022-36313Sindresorhus File-type

Medium 5.5

Priority
33
CVSS 3.1
5.5
EPSS
0.4%
probability of exploitation in 30 days · percentile 26
Auth required
Yes
Published
Jul 21, 2022
Updated
Oct 7, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-835
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

What happens

An issue was discovered in the file-type package before 16.5.4 and 17.x before 17.1.3 for Node.js. A malformed MKV file could cause the file type detector to get caught in an infinite loop. This would make the application become unresponsive and could be used to cause a DoS attack.

Original NVD text.

What to do

  1. Apply the vendor's security update for File-type.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm file-type ≥ 13.0.0 < 16.5.4 16.5.4 npm install file-type@16.5.4
npm file-type ≥ 17.0.0 < 17.1.3 17.1.3 npm install file-type@17.1.3

Per OSV / GitHub Advisories (GHSA-mhxj-85r3-2x55). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
sindresorhusfile-type< 16.5.4
sindresorhusfile-type≥ 17.0.0 < 17.1.3

Official sources

References

Links published by the sources. Open them with care.