p PatchFirst

PatchFirst · Latest vulnerabilities

file-type vulnerabilities

Vulnerabilities published for file-type in the last 30 days: 0. Listed in the KEV catalogue: 0.

Filter vulnerabilities
Clear filters

Vulnerabilities: 3

  1. CVE-2026-32630

    Medium · CVSS 5.3EPSS 0.32%Fix available

    file-type affected by ZIP Decompression Bomb DoS via [Content_Types].xml entry

    file-type detects the file type of a file, stream, or data. From 20.0.0 to 21.3.1, a crafted ZIP file can trigger excessive memory growth during type detection in file-type when using fileTypeFromBuffer(), fileTypeFromBlob(), or fileTypeFromFile(). The ZIP inflate output limit is enforced for stream-based detection, but not for known-size inputs. As a result, a small compressed ZIP can cause file-type to inflate and process a much larger payload while probing ZIP-based formats such as OOXML. This vulnerability is fixed in 21.3.2.

    • Update to 21.3.2
    Published Updated
  2. CVE-2026-31808

    Medium · CVSS 5.3EPSS 0.34%Fix available

    file-type affected by infinite loop in ASF parser on malformed input with zero-size sub-header

    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.

    • Update to 21.3.1
    Published Updated
  3. CVE-2022-36313

    Medium · CVSS 5.5EPSS 0.41%Fix available

    CVE-2022-36313

    An issue was discovered in the file-type package before 16.5.4 and 17.x before 17.1.3 for Node.js. A malformed MKV file could cause the file type detector to get caught in an infinite loop. This would make the application become unresponsive and could be used to cause a DoS attack.

    • Update to 16.5.4
    • Update to 17.1.3
    Published Updated

Check your server

Check your installed stack and versions against the current vulnerability feeds.

Check your server →