Skip to content
OpenAdvisories

Package · npm

file-type

3 known vulnerabilities.

3 results · Feed

  • Medium 5.3

    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 in…

  • Medium 5.3

    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 en…

  • Medium 5.5

    file-type vulnerable to Infinite Loop via malformed MKV file

    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…