CVE & CISA-KEV Catalog

CVE-2026-31808

MEDIUM
5.3
CVSS v3
NVD

Description

file-type detects the file type of a file, stream, or data. Prior to 21.3.1, a denial of service vulnerability exists in the ASF (WMV/WMA) file type detection parser. When parsing a crafted input where an ASF sub-header has a size field of zero, the parser enters an infinite loop. The payload value becomes negative (-24), causing tokenizer.ignore(payload) to move the read position backwards, so the same sub-header is read repeatedly forever. Any application that uses file-type to detect the type of untrusted/attacker-controlled input is affected. An attacker can stall the Node.js event loop with a 55-byte payload. Fixed in version 21.3.1.

How to fix

Remediation Available
file-typeNVD
Affected:>= 13.0.0, < 21.3.1Fixed in:21.3.1CVE-2026-31808derived from NVD

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityNone
AvailabilityLow

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Exploit Intelligence

0.33%probability of exploitation in 30 days
24thpercentile

Low risk: more likely to be exploited than 24% of all known CVEs.

References

Related Vulnerabilities

Other CWE-835 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2020-13935High7.588%-Fix
CVE-2020-36227High7.578%-Fix
CVE-2022-0778High7.571%-Fix
CVE-2019-14241High7.570%--
CVE-2017-16944High7.563%-Fix
CVE-2024-20353High8.663%KEV-
Embed a live status badge for CVE-2026-31808
CVE-2026-31808 severity badge

Markdown

[![CVE-2026-31808](https://tridentstack.com/cve/badge/CVE-2026-31808.svg)](https://tridentstack.com/cve/CVE-2026-31808)

HTML

<a href="https://tridentstack.com/cve/CVE-2026-31808"><img src="https://tridentstack.com/cve/badge/CVE-2026-31808.svg" alt="CVE-2026-31808"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-03-18.