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.4Details
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
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-36313[ADVISORY]
- https://github.com/sindresorhus/file-type/commit/2c4d1200c99dffb7d515b9b9951ef43c22bf7e47[WEB]
- https://github.com/sindresorhus/file-type/commit/8f981c32e2750d2516457e305e502ee2ad715759#diff-c853b2249e99790d8725774cf63c90c5ab17112067df6e267f3701d7bf591d12[WEB]
- https://github.com/sindresorhus/file-type/commit/d86835680f4cccbee1a60628783c36700ec9e254[WEB]
- https://github.com/sindresorhus/file-type[PACKAGE]
- https://github.com/sindresorhus/file-type/compare/v12.4.2...v13.0.0#diff-c853b2249e99790d8725774cf63c90c5ab17112067df6e267f3701d7bf591d12R611-R613[WEB]
- https://github.com/sindresorhus/file-type/releases/tag/v16.5.4[WEB]
- https://github.com/sindresorhus/file-type/releases/tag/v17.1.3[WEB]
- https://security.netapp.com/advisory/ntap-20220909-0005[WEB]
- https://security.snyk.io/vuln/SNYK-JS-FILETYPE-2958042[WEB]
- https://www.npmjs.com/package/file-type[WEB]