SCA: security update for file-type (GHSA-5v7r-6r5c-r473)

medium Tenable Cloud Security Plugin ID 438615

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. (CVE-2026-31808)

Solution

Update the file-type library and its related packages to version 21.3.1 or later.

See Also

https://github.com/advisories/GHSA-5v7r-6r5c-r473

Plugin Details

Severity: Medium

ID: 438615

Version: Revision 1.7

Type: Local

Family: SCA Checks

Published: 3/11/2026

Updated: 6/1/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Low

Score: 1.2

Percentile: 0.01

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: Medium

Base Score: 5

Temporal Score: 3.7

Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:P

CVSS Score Source: CVE-2026-31808

CVSS v3

Risk Factor: Medium

Base Score: 5.3

Temporal Score: 4.6

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 3/10/2026

Vulnerability Publication Date: 3/10/2026

Reference Information

CVE: CVE-2026-31808

cwe: CWE-835