CVE-2022-36313

file-type: a malformed MKV file could cause the file type detector to get caught in an infinite loop

Published Jul 21, 2022 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
Description
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

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
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

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
Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Oct 7, 2026, 6:50 PM
Reserved
Jul 20, 2022, 12:00 AM
Status
Modified
Published
Jul 21, 2022, 4:15 PM
Modified
Oct 7, 2026, 7:17 PM
Severity
Moderate
Public date
Jul 21, 2022, 12:00 AM