CVE-2025-54313
eslint-config-prettier, eslint-plugin-prettier, synckit, @pkgr/core, napi-postinstall have embedded malicious code
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- Low
- Integrity
- High
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
7.5
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.
- Record
CVE-2025-54313- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:N - Weakness
- CWE-506
- Updated
- 2026-11-02
EUVDEUVD-2025-21972
7.5
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.
- Record
EUVD-2025-21972- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:N - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-f29h-pxvx-f335
7.5
eslint-config-prettier, eslint-plugin-prettier, synckit, @pkgr/core, napi-postinstall have embedded malicious code
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.
- Record
GHSA-f29h-pxvx-f335- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:N - Weakness
- CWE-506
- Updated
- 2026-11-02
CISA KEV No score
Prettier eslint-config-prettier Embedded Malicious Code Vulnerability
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.
- Record
CVE-2025-54313- Weakness
- CWE-506
- Updated
- 2026-11-02
NVD
7.5
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.
- Record
CVE-2025-54313- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:N - Weakness
- CWE-506
- Updated
- 2026-11-02
OSV
7.5
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.
- Record
CVE-2025-54313- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:N - Weakness
- CWE-506
- Updated
- 2026-11-02
OSVGHSA-f29h-pxvx-f335
7.5
eslint-config-prettier, eslint-plugin-prettier, synckit, @pkgr/core, napi-postinstall have embedded malicious code
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.
- Record
GHSA-f29h-pxvx-f335- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:N - Weakness
- CWE-506
- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
eslint-config-prettiernpm |
8.10.1 to 8.10.1 | 8.10.2 |
eslint-config-prettiernpm |
9.1.1 to 9.1.1 | 9.1.2 |
eslint-config-prettiernpm |
10.1.6 to 10.1.7 | 10.1.8 |
eslint-plugin-prettiernpm |
4.2.2 to 4.2.3 | 4.2.4 |
synckitnpm |
0.11.9 to 0.11.9 | 0.11.10 |
@pkgr/corenpm |
0.2.8 to 0.2.8 | 0.2.9 |
napi-postinstallnpm |
0.3.1 to 0.3.1 | 0.3.2 |
got-fetchnpm |
5.1.11 to 5.1.12 | 6.0.0 |
eslint-config-prettiernpm |
8.10.1 up to 8.10.2 | 8.10.2 |
eslint-config-prettiernpm |
9.1.1 up to 9.1.2 | 9.1.2 |
Show 6 moreShow less
| Package | Affected | Fixed |
|---|---|---|
eslint-config-prettiernpm |
10.1.6 up to 10.1.8 | 10.1.8 |
eslint-plugin-prettiernpm |
4.2.2 up to 4.2.4 | 4.2.4 |
synckitnpm |
0.11.9 up to 0.11.10 | 0.11.10 |
@pkgr/corenpm |
0.2.8 up to 0.2.9 | 0.2.9 |
napi-postinstallnpm |
0.3.1 up to 0.3.2 | 0.3.2 |
got-fetchnpm |
5.1.11 up to 6.0.0 | 6.0.0 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| PoC in GitHub | Paspke/scavenger_scanner | 2025-07-26 |
| PoC in GitHub | nihilor/cve-2025-54313 | 2025-07-26 |
History
| Recorded | Changed | Sources |
|---|---|---|
| exploitation | ||
| first indexed | CVE List, EUVD, GitHub Advisories, CISA KEV, NVD, OSV, PoC in GitHub |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2025-54313 is a high vulnerability (CVSS 7.5) in Prettier Eslint-config-prettier, published July 19, 2025. CISA lists it as known to be exploited, since January 22, 2026. EUVD reports exploitation since January 22, 2026. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 5.12%, the 92nd percentile. Fixed in eslint-config-prettier 8.10.2.
References
socket.dev/blog/npm-phishing-campaign-leads-to-prettier-tooling-packages-compromise
bleepingcomputer.com/news/security/popular-npm-linter-packages-hijacked-via-phishing-to-drop-malware
github.com/prettier/eslint-config-prettier/issues/339
npmjs.com/package/eslint-config-prettier?activeTab=versions
stepsecurity.io/blog/supply-chain-security-alert-eslint-config-prettier-package-shows-signs-of-compromise
news.ycombinator.com/item?id=44609732
Show 15 moreShow less
news.ycombinator.com/item?id=44608811
github.com/community-scripts/ProxmoxVE/discussions/6115
endorlabs.com/learn/cve-2025-54313-eslint-config-prettier-compromise----high-severity-but-windows-only
cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-54313
nvd.nist.gov/vuln/detail/CVE-2025-54313
github.com/prettier/eslint-config-prettier/commit/9b0b0a47ec28a7a83cf65e8436a8776910379385
github.com/prettier/eslint-plugin-prettier/commit/ec39dd4400f10c52d10cd991c10fa8de51ceb854
github.com/un-ts/napi-postinstall/commit/38b4e95cf554e2549b9e1e2c4ff6bff4da9a65f9
github.com/un-ts/pkgr/commit/e1420c99e44d8a2ae949381f9fbe1af5ba9cb1dd
github.com/un-ts/synckit/commit/8f2ee32d4f75736a1c8d7e1101190a71e48909e4
secure.software/npm/packages/got-fetch
checkmarx.com/zero-post/supply-chain-phishing-campaign-drops-more-malware-into-npm-got-fetch-5-1
github.com/advisories/GHSA-f29h-pxvx-f335
github.com/CVEProject/cvelistV5/tree/main/cves/2025/54xxx/CVE-2025-54313.json
github.com/prettier/eslint-config-prettier