
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-31808 is a denial-of-service vulnerability in the ASF (WMV/WMA) file type detection parser of the file-type npm package. A crafted input with an ASF sub-header size field of zero causes the parser to enter an infinite loop, stalling the Node.js event loop indefinitely. Affected versions are >= 13.0.0 and < 21.3.1; the fix was released in version 21.3.1. The vulnerability was published on March 9–10, 2026, and carries a CVSS v3.1 base score of 5.3 (Medium) (GitHub Advisory, Red Hat).
The root cause is classified as CWE-835 (Loop with Unreachable Exit Condition / Infinite Loop). When the ASF parser processes a sub-header with a size field of zero, the computed payload value becomes -24 (i.e., 0 - 24). Passing this negative value to tokenizer.ignore(payload) moves the read position backwards rather than forwards, causing the same sub-header to be re-read in an endless loop. The fix (commit 319abf8) adds a safeguard that breaks the loop if tokenizer.position has not advanced past its previous value after each iteration. An attacker can trigger this condition remotely with a crafted 55-byte payload, requiring no authentication or user interaction (GitHub Advisory, Fix Commit).
Successful exploitation causes the Node.js event loop to stall indefinitely, rendering the affected application unresponsive and resulting in a denial of service. There is no impact on confidentiality or data integrity — the vulnerability is limited to availability. Any service that passes untrusted or attacker-controlled input to file-type for detection (e.g., file upload endpoints, media processing pipelines) is at risk of complete service disruption from a single 55-byte payload (GitHub Advisory).
No public proof-of-concept exploit code has been identified, and there is no evidence of in-the-wild exploitation at this time (GitHub Advisory). The EPSS score is approximately 0.031–0.044%, indicating a low near-term exploitation probability. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. No threat actor attribution has been reported.
file-type npm package (versions 13.0.0–21.3.0) to detect file types.30 26 B2 75 8E 66 CF 11 A6 D9 00 00 00 00 00 00) followed by a sub-header where the 8-byte size field is set to zero (e.g., 3026b2758e66cf11a6d9000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 in hex).file-type detection (e.g., a file upload API).payload = 0 - 24 = -24, and calls tokenizer.ignore(-24), moving the read position backwards. The parser re-reads the same sub-header forever, blocking the Node.js event loop.30 26 B2 75 8E 66 CF 11 A6 D9).The primary remediation is to upgrade file-type to version 21.3.1 or later, which includes a safeguard that breaks the ASF parsing loop if the tokenizer position does not advance (GitHub Advisory, Fix Commit). If immediate patching is not possible, the following workarounds are recommended:
file-type.IBM has issued advisories for affected products including Cloud Pak for Integration, Watsonx BI Assistant, IBM DevOps Solution Workbench, watsonx.data, IBM API Connect, and QRadar Suite Software (IBM CP4I Advisory, IBM API Connect).
The vulnerability was reported by crnkovic@lokvica.com and disclosed by the package maintainer (sindresorhus) via a GitHub Security Advisory on March 9, 2026. Red Hat tracked the issue via Bugzilla (Bug 2446309) and IBM issued multiple security bulletins for downstream products incorporating the affected file-type package. No significant broader media coverage or notable researcher commentary beyond vendor advisories has been identified (Red Hat Bugzilla, IBM CP4I Advisory).
Fix availability across major Linux distributions and their releases.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."