Advisories / npm / @pkgr/core / CVE-2025-54313
eslint-config-prettier, eslint-plugin-prettier, synckit, @pkgr/core, napi-postinstall have embedded malicious code (CVE-2025-54313)
CVE-2025-54313 GHSA-f29h-pxvx-f335 Published 19 Jul 2025
Affects 6 packages. Each has a fixed release.
$ npm install @pkgr/core@^0.2.9 $ npm install eslint-config-prettier@^8.10.2 $ npm install eslint-config-prettier@^9.1.2 $ npm install eslint-config-prettier@^10.1.8 $ npm install eslint-plugin-prettier@^4.2.4 $ npm install got-fetch@^6.0.0
Which versions are affected
| Package | Affected | Fixed in |
|---|---|---|
| @pkgr/core | ≥ 0.2.8, < 0.2.9 | 0.2.9 |
| eslint-config-prettier | ≥ 8.10.1, < 8.10.2≥ 9.1.1, < 9.1.2≥ 10.1.6, < 10.1.8 | 8.10.29.1.210.1.8 |
| eslint-plugin-prettier | ≥ 4.2.2, < 4.2.4 | 4.2.4 |
| got-fetch | ≥ 5.1.11, < 6.0.0 | 6.0.0 |
| napi-postinstall | ≥ 0.3.1, < 0.3.2 | 0.3.2 |
| synckit | ≥ 0.11.9, < 0.11.10 | 0.11.10 |
Check a site from its project folder:
npm ls @pkgr/core
shows the installed version. Or paste the lock file into the lock file checker to check every package at once.
Timeline
- Advisory published, with a fix
- Added to CISA’s exploited list
Questions
Which version of @pkgr/core is safe from CVE-2025-54313?
0.2.9 and later. Versions affected: ≥ 0.2.8, < 0.2.9.
Which version of eslint-config-prettier is safe from CVE-2025-54313?
10.1.8 and later. Versions affected: ≥ 8.10.1, < 8.10.2, ≥ 9.1.1, < 9.1.2, ≥ 10.1.6, < 10.1.8.
Which version of eslint-plugin-prettier is safe from CVE-2025-54313?
4.2.4 and later. Versions affected: ≥ 4.2.2, < 4.2.4.
Which version of got-fetch is safe from CVE-2025-54313?
6.0.0 and later. Versions affected: ≥ 5.1.11, < 6.0.0.
Which version of napi-postinstall is safe from CVE-2025-54313?
0.3.2 and later. Versions affected: ≥ 0.3.1, < 0.3.2.
Which version of synckit is safe from CVE-2025-54313?
0.11.10 and later. Versions affected: ≥ 0.11.9, < 0.11.10.
Is CVE-2025-54313 being exploited?
Yes. CISA added it to its Known Exploited Vulnerabilities list on 22 January 2026, which means it has been used in real attacks. Upgrade as soon as you can.