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

Exploited in the wild High 7.5 Published Updated

Malicious code in eslint-config-prettier executes malware during installation on Windows, requiring users to upgrade to a safe version.

Exploited in the wild
Since 22 Jan 2026
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-54313?

CVE-2025-54313 is a high-severity vulnerability in eslint-config-prettier, published on 19 Jul 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-506

Which versions are affected by CVE-2025-54313?

16 open source packages ship an affected version, including eslint-config-prettier, @pkgr/core and eslint-plugin-prettier. It affects 7 products.

PackageAffectedFixed in
eslint-config-prettier npmFrom 10.1.610.1.8
eslint-config-prettier npmFrom 10.1.610.1.8
eslint-config-prettier npmFrom 8.10.18.10.2
eslint-config-prettier npmFrom 8.10.18.10.2
eslint-config-prettier npmFrom 9.1.19.1.2
eslint-config-prettier npmFrom 9.1.19.1.2
10 more packages
@pkgr/core npmFrom 0.2.80.2.9
@pkgr/core npmFrom 0.2.80.2.9
eslint-plugin-prettier npmFrom 4.2.24.2.4
eslint-plugin-prettier npmFrom 4.2.24.2.4
got-fetch npmFrom 5.1.116.0.0
got-fetch npmFrom 5.1.116.0.0
napi-postinstall npmFrom 0.3.10.3.2
napi-postinstall npmFrom 0.3.10.3.2
synckit npmFrom 0.11.90.11.10
synckit npmFrom 0.11.90.11.10

Products include Alexghr Got-Fetch, Homarr Homarr, Prettier Eslint-Config-Prettier, Prettier Eslint-Plugin-Prettier, Un-Ts Napi-Postinstall, Un-Ts Pkgr\/Core and 1 more.

How do I fix CVE-2025-54313?

Upgrade eslint-config-prettier to a fixed version for your release line: 10.1.8, 8.10.2 or 9.1.2. US federal agencies must fix it by 12 Feb 2026.

Is CVE-2025-54313 being exploited?

Yes. Attackers have exploited CVE-2025-54313 in the wild since at least 22 Jan 2026.

Public exploit code: 2 proofs of concept on GitHub.

Sources

Also known as GHSA-f29h-pxvx-f335.

Is CVE-2025-54313 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free