5.3

CVE-2026-31808: sindresorhus file-type Infinite Loop

CVSS: 5.3v3.1MediumAnalyzed
AliasesGHSA-5v7r-6r5c-r473CGA-5mh6-c8hv-mw52CGA-cm3j-54fp-59fv
Published 10-03-2026Last modified 11-03-2026

Vulnerability summary

CVE-2026-31808 is a medium (CVSS 5.3) Infinite Loop vulnerability in sindresorhus file-type. EPSS estimates a 0.43% chance of exploitation in the next 30 days, higher than 36.6% of scored vulnerabilities.

Overall risk
21/100
0100
Low · default modelHow is this calculated?
CVSS score
5.3/10
010
Medium · v3.1 (CVE.org)
EPSS score
0.43%
0%100%
Low · +0.11 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 0 · Related 1

Timeline

  1. 10-03-2026
    PublishedVulnerability first disclosed.
  2. 11-03-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

4 scores · 4 sources · 1 version

EPSS trend

Probability

0.43%

Chance of exploitation in the next 30 days

Percentile

37%

Versus all other CVEs

30-day change

+0.11 pp

From 0.33% on 21-09-2026

21-09-202621-10-2026
EPSS score
0.43%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Chainguard3 products
  • foxx-cliAll versions (No fix recorded)
  • librechat< 0.8.4-r3
  • redisinsight< 3.2.0-r2
Npm1 product
  • file-type≥ 13.0.0, < 21.3.1
Sindresorhus1 product

3 vendors · 5 products

References

5 links