-
-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Vulnerable Library - cli-0.1.63.tgz
Path to dependency file: /package.json
Path to vulnerable library: /package.json
Vulnerabilities
| Vulnerability | Severity | Dependency | Type | Fixed in (cli version) | Remediation Possible** | |
|---|---|---|---|---|---|---|
| CVE-2026-31808 | 5.3 | file-type-17.1.6.tgz | Transitive | N/A* | ❌ |
*For some transitive vulnerabilities, there is no version of direct dependency with a fix. Check the "Details" section below to see if there is a version of transitive dependency where vulnerability is fixed.
**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation
Details
CVE-2026-31808
Vulnerable Library - file-type-17.1.6.tgz
Detect the file type of a Buffer/Uint8Array/ArrayBuffer
Library home page: https://registry.npmjs.org/file-type/-/file-type-17.1.6.tgz
Path to dependency file: /package.json
Path to vulnerable library: /package.json
Dependency Hierarchy:
- cli-0.1.63.tgz (Root Library)
- bin-wrapper-8.0.1.tgz
- ❌ file-type-17.1.6.tgz (Vulnerable Library)
- bin-wrapper-8.0.1.tgz
Found in base branch: main
Vulnerability Details
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.
Publish Date: 2026-03-10
URL: CVE-2026-31808
CVSS 3 Score Details (5.3)
Base Score Metrics:
- Exploitability Metrics:
- Attack Vector: Network
- Attack Complexity: Low
- Privileges Required: None
- User Interaction: None
- Scope: Unchanged
- Impact Metrics:
- Confidentiality Impact: None
- Integrity Impact: None
- Availability Impact: Low
Suggested Fix
Type: Upgrade version
Release Date: 2026-03-10
Fix Resolution: https://github.com/sindresorhus/file-type.git - v21.3.1
Step up your Open Source Security Game with Mend here