Node.js Module node-tar < 7.5.11 Arbitrary File Overwrite

medium Nessus Plugin ID 318798

Synopsis

A module in the Node.js JavaScript run-time environment is affected by an arbitrary file overwrite vulnerability.

Description

The version of node-tar installed on the remote host is prior to 7.5.11. It is, therefore, affected by a vulnerability:

- node-tar is a full-featured Tar for Node.js. Prior to version 7.5.11, tar (npm) can be tricked into creating a symlink that points outside the extraction directory by using a drive-relative symlink target such as C:../../../target.txt, which enables file overwrite outside cwd during normal tar.x() extraction.
This vulnerability is fixed in 7.5.11. (CVE-2026-31802)

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Upgrade to node-tar version 7.5.11 or later.

See Also

http://www.nessus.org/u?50b50f5d

Plugin Details

Severity: Medium

ID: 318798

File Name: nodejs_module_tar_7_5_11.nasl

Version: 1.1

Type: Local

Agent: windows, macosx, unix

Family: Misc.

Published: 6/5/2026

Updated: 6/5/2026

Configuration: Enable thorough checks (optional)

Supported Sensors: Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 4.4

CVSS v2

Risk Factor: Medium

Base Score: 4.6

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

CVSS Score Source: CVE-2026-31802

CVSS v3

Risk Factor: Medium

Base Score: 5.5

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

Vulnerability Information

CPE: cpe:/a:node-tar_project:node-tar

Required KB Items: Host/nodejs/modules/enumerated

Patch Publication Date: 3/10/2026

Vulnerability Publication Date: 3/10/2026

Reference Information

CVE: CVE-2026-31802

IAVB: 2026-B-0066