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.
Advisories
Source ID Title
EUVD EUVD EUVD-2022-6377 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.
Github GHSA Github GHSA GHSA-mhxj-85r3-2x55 file-type vulnerable to Infinite Loop via malformed MKV file
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Tue, 17 Mar 2026 19:30:00 +0000

Type Values Removed Values Added
First Time appeared Sindresorhus
Sindresorhus file-type
CPEs cpe:2.3:a:file-type_project:file-type:*:*:*:*:*:node.js:*:* cpe:2.3:a:sindresorhus:file-type:*:*:*:*:*:node.js:*:*
Vendors & Products File-type Project
File-type Project file-type
Sindresorhus
Sindresorhus file-type

Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2024-08-03T10:00:04.274Z

Reserved: 2022-07-20T00:00:00.000Z

Link: CVE-2022-36313

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Modified

Published: 2022-07-21T16:15:09.297

Modified: 2026-03-17T19:18:04.083

Link: CVE-2022-36313

cve-icon Redhat

Severity : Moderate

Publid Date: 2022-07-21T00:00:00Z

Links: CVE-2022-36313 - Bugzilla

cve-icon OpenCVE Enrichment

No data.

Weaknesses