Stackurity Start free trial

CVEs / CVE-2025-54313

CVE-2025-54313: Prettier eslint-config-prettier Embedded Malicious Code Vulnerability

Are you affected? Check your servers with Stackurity: it lists the software on each server and the vulnerabilities to fix first.

Check your servers with Stackurity Already using Stackurity? Search for CVE-2025-54313

Summary

Prettier eslint-config-prettier contains an embedded malicious code vulnerability. Installing an affected package executes an install.js file that launches the node-gyp.dll malware on Windows.

CISA, Known Exploited Vulnerabilities catalog

Description

eslint-config-prettier 8.10.1, 9.1.1, 10.1.6, and 10.1.7 has embedded malicious code for a supply chain compromise. Installing an affected package executes an install.js file that launches the node-gyp.dll malware on Windows.

The CVE record, via NVD · published 19 Jul 2025 · NVD status: Analyzed

Affected and fixed versions

As stated by the CVE record (from the CNA)
ProductAffectedFixed in
prettier eslint-config-prettier8.10.1—
prettier eslint-config-prettier9.1.1—
prettier eslint-config-prettier10.1.6—
prettier eslint-config-prettier10.1.7—
As stated by OSV
ProductAffectedFixed in
eslint-config-prettier (npm)from 8.10.1, before 8.10.28.10.2
eslint-config-prettier (npm)from 9.1.1, before 9.1.29.1.2
eslint-config-prettier (npm)from 10.1.6, before 10.1.810.1.8
eslint-plugin-prettier (npm)from 4.2.2, before 4.2.44.2.4
synckit (npm)from 0.11.9, before 0.11.100.11.10
@pkgr/core (npm)from 0.2.8, before 0.2.90.2.9
napi-postinstall (npm)from 0.3.1, before 0.3.20.3.2
got-fetch (npm)from 5.1.11, before 6.0.06.0.0

Package versions from GHSA-f29h-pxvx-f335.

Exploitation

In CISA KEV since22 Jan 2026
Due date for US federal agencies12 Feb 2026
Used in ransomware campaignsUnknown
Required actionApply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.

Severity

CVSS 3.17.5 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:N
Scored by the CNA ([email protected])
WeaknessCWE-506

References

Sources

Exploitation status from the CISA Known Exploited Vulnerabilities catalog. EPSS scores from FIRST. Descriptions, severity and references from the National Vulnerability Database. Open-source package versions from OSV (CC-BY 4.0). Text is shown as each source states it; Stackurity does not edit it. Check the vendor's advisory before acting.

This product uses data from the NVD API but is not endorsed or certified by the NVD.