VDB
Sign up
HIGH7.5

GHSA-mhxj-85r3-2x55

file-type vulnerable to Infinite Loop via malformed MKV file

Quick fix

GHSA-mhxj-85r3-2x55 — file-type: upgrade to the fixed version with the command below.

npm install file-type@16.5.4

Details

An issue was discovered in the file-type package from 13.0.0 until 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 when used on a web server.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/file-type
Introduced in: 13.0.0Fixed in: 16.5.4
Fixnpm install file-type@16.5.4
npm/file-type
Introduced in: 17.0.0Fixed in: 17.1.3
Fixnpm install file-type@17.1.3

References