{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-31808","published":"2026-03-10T21:16:50.173000Z","last_modified":"2026-06-17T10:34:30.063000Z","status":"Analyzed","cvss":{"version":"3.1","score":5.3,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","source":"security-advisories@github.com","primary":false},"auth":false,"cwes":["CWE-835"],"cpes":[{"criteria":"cpe:2.3:a:sindresorhus:file-type:*:*:*:*:*:node.js:*:*","part":"a","vendor":"sindresorhus","product":"file-type","version_start_including":"13.0.0","version_end_excluding":"21.3.1"}],"cpes_truncated":false,"vendors":["sindresorhus"],"products":["sindresorhus/file-type"],"ssvc":{"exploitation":"none","automatable":"yes","technical_impact":"partial"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-5v7r-6r5c-r473","ecosystem":"npm","name":"file-type","purl":"pkg:npm/file-type","ranges":[{"introduced":"13.0.0","fixed":"21.3.1"}],"versions":[],"versions_truncated":false}],"severity":"medium","priority_score":47,"links":{"html_es":"/es/cve/CVE-2026-31808/","html_en":"/en/cve/CVE-2026-31808/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-31808","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-31808"},"untrusted":{"vendor_name":"Sindresorhus","product_name":"File-type","desc_en":"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.","affected":[{"untrusted_vendor":"sindresorhus","untrusted_product":"file-type","versions":[]}],"references":[{"url":"https://github.com/sindresorhus/file-type/commit/319abf871b50ba2fa221b4a7050059f1ae096f4f","tags":["Patch"]},{"url":"https://github.com/sindresorhus/file-type/security/advisories/GHSA-5v7r-6r5c-r473","tags":["Mitigation","Patch","Vendor Advisory"]}]}}