Infinite loop in file-type - CVE-2026-31808

 

Infinite loop in file-type - CVE-2026-31808

Published: April 28, 2026


Vulnerability identifier: #VU128266
CSH Severity: Medium
CVSSv4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2026-31808
CWE-ID: CWE-835
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vulnerable software:
file-type
Software vendor:
Sindre Sorhus

Description

The vulnerability allows a remote attacker to cause a denial of service.

The vulnerability exists due to an infinite loop in the ASF file type detection parser when parsing a crafted ASF input with a zero-size sub-header. A remote attacker can supply a specially crafted 55-byte payload to cause a denial of service.

The issue can stall the Node.js event loop while processing untrusted or attacker-controlled input.


Remediation

Install security update from vendor's website.

External links