Node.js Multiple Packages Embedded Malicious Code (CVE-2025-54313)

high Nessus Plugin ID 245592

Synopsis

Multiple packages in the Node.js JavaScript run-time environment are affected by embedded malicious code.

Description

Multiple nodejs packages were embedded with malicious code. Installing an affected package executes an install.js file that launches the node-gyp.dll malware on Windows. The following nodejs packages and versions are affected:

- @pkgr/core 0.2.8
- eslint-config-prettier 8.10.1, 9.1.1, 10.1.6, 10.1.7
- eslint-plugin-prettier 4.2.2, 4.2.3
- got-fetch 5.1.11, 5.1.12
- napi-postinstall 0.3.1
- synckit 0.11.9

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

Solution

Upgrade to a fixed version of the affected package.

See Also

https://github.com/advisories/GHSA-f29h-pxvx-f335

http://www.nessus.org/u?5bf8cbed

Plugin Details

Severity: High

ID: 245592

File Name: nodejs_eslint-config-prettier_CVE-2025-54313.nasl

Version: 1.1

Type: local

Agent: windows

Family: Windows

Published: 8/8/2025

Updated: 8/8/2025

Configuration: Enable thorough checks (optional)

Supported Sensors: Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.9

CVSS v2

Risk Factor: Medium

Base Score: 6.1

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

CVSS Score Source: CVE-2025-54313

CVSS v3

Risk Factor: High

Base Score: 7.5

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

Vulnerability Information

CPE: cpe:/a:nodejs:node.js

Required KB Items: Host/nodejs/modules/enumerated

Patch Publication Date: 7/19/2025

Vulnerability Publication Date: 7/19/2025

Reference Information

CVE: CVE-2025-54313