An issue was discovered in the file-type package before 16.5.4 and 17.x before 17.1.3 for…
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Partial Red Hat: 1 fixed, 4 without a fix
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-835.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | file-type (npm) | 13.0.0 to before 16.5.4 | 16.5.4 | Patch available | GHSA-mhxj-85r3-2x55 |
| — | file-type (npm) | 17.0.0 to before 17.1.3 | 17.1.3 | Patch available | GHSA-mhxj-85r3-2x55 |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- file-type (npm) Vendor— Affected 13.0.0 to before 16.5.4 Fixed in 16.5.4 Patch available GHSA-mhxj-85r3-2x55
- file-type (npm) Vendor— Affected 17.0.0 to before 17.1.3 Fixed in 17.1.3 Patch available GHSA-mhxj-85r3-2x55
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:sindresorhus:file-type:*:*:*:*:*:node.js:*:* | before 16.5.4; 17.0.0 to before 17.1.3 | Vulnerable | sindresorhus |
- cpe:2.3:a:sindresorhus:file-type:*:*:*:*:*:node.js:*:* Versions before 16.5.4; 17.0.0 to before 17.1.3 Vulnerable ·sindresorhus
Remediation
- Fix · GHSA-mhxj-85r3-2x55 file-type (npm) Fixed in 16.5.4 Advisory →
- Fix · GHSA-mhxj-85r3-2x55 file-type (npm) Fixed in 17.1.3 Advisory →
Red Hat 1 advisory
- RHSA-2023:0713 Released 2023-02-09 · Red Hat rating ImportantRed Hat Data Grid 8.4.1 security update
- Red Hat Data Grid 8.4.1
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Migration Toolkit for Virtualization | Affected | No fix yet |
| Red Hat Advanced Cluster Security 3 | Affected | No fix yet |
| Red Hat Integration Camel K 1 | Affected | No fix planned: Will not fix |
| Red Hat OpenShift Dev Spaces | Affected | No fix yet |
| Red Hat Data Grid 8.4.1 | Fixed | RHSA-2023:0713 |
Not affected: 3 products
- Red Hat Advanced Cluster Security 3
- Red Hat OpenShift Dev Spaces
- Red Hat build of Apicurio Registry 2
Timeline
- 2026-10-02 Threatist record created from CVE-2022-36313
- 2026-10-03 Alias added: GHSA-mhxj-85r3-2x55
- 2026-10-07 CVSS score added · CISA ADP
- 2026-10-07 Weakness changed · CISA ADP
- 2026-10-07 CISA SSVC decision points changed
References
Advisory 5
Other 6
- https://github.com/sindresorhus/file-type/commit/2c4d1200c99dffb7d515b9b9951ef43c22bf7e47
- https://github.com/sindresorhus/file-type/commit/8f981c32e2750d2516457e305e502ee2ad715759#diff-c853b2249e99790d8725774cf63c90c5ab17112067df6e267f3701d7bf591d12
- https://github.com/sindresorhus/file-type/commit/d86835680f4cccbee1a60628783c36700ec9e254
- https://github.com/sindresorhus/file-type
- https://github.com/sindresorhus/file-type/compare/v12.4.2...v13.0.0#diff-c853b2249e99790d8725774cf63c90c5ab17112067df6e267f3701d7bf591d12R611-R613
- https://security.netapp.com/advisory/ntap-20220909-0005
More sindresorhus File-type vulnerabilities
- TI-2026-25139 file-type affected by ZIP Decompression Bomb DoS via [Content_Types].xml entry CVSS 3.1MEDIUM 5.3
- TI-2026-24363 file-type affected by infinite loop in ASF parser on malformed input with zero-size sub-header CVSS 3.1MEDIUM 5.3
Sources
- CVE-2022-36313 · CVE Program
- CVE-2022-36313 · NVD
- FIRST EPSS
- GHSA-mhxj-85r3-2x55 · GitHub Advisory Database · CC BY 4.0
- CVE-2022-36313 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences