{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-54313","id":"CVE-2025-54313","title":"eslint-config-prettier, eslint-plugin-prettier, synckit, @pkgr/core, napi-postinstall have embedded malicious code","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.","descriptionLong":"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.","published":"2025-07-19T00:00:00.000Z","updated":"2026-10-28T02:31:03.328774006Z","reserved":"2025-07-19T00:00:00.000Z","status":"Analyzed","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:N","rating":"high","source":"mitre"},"metrics":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:N","rating":"high","source":"mitre"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:N","rating":"high","source":"mitre.org"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:N","rating":"high","source":"OSV"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:N","rating":"high","source":"GitHub"}],"rating":"high","products":["prettier eslint-config-prettier"],"affectedProducts":[{"vendor":"prettier","product":"eslint-config-prettier","defaultStatus":"unaffected","versions":[{"status":"affected","version":"8.10.1","versionType":"semver"},{"status":"affected","version":"9.1.1","versionType":"semver"},{"status":"affected","version":"10.1.6","versionType":"semver"},{"status":"affected","version":"10.1.7","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"eslint-config-prettier","purl":"pkg:npm/eslint-config-prettier","ranges":[">=8.10.1 <8.10.2",">=9.1.1 <9.1.2",">=10.1.6 <10.1.8"],"fixed":["8.10.2","9.1.2","10.1.8"],"advisory":"GHSA-f29h-pxvx-f335"},{"ecosystem":"npm","name":"eslint-plugin-prettier","purl":"pkg:npm/eslint-plugin-prettier","ranges":[">=4.2.2 <4.2.4"],"fixed":["4.2.4"],"advisory":"GHSA-f29h-pxvx-f335"},{"ecosystem":"npm","name":"synckit","purl":"pkg:npm/synckit","ranges":[">=0.11.9 <0.11.10"],"fixed":["0.11.10"],"advisory":"GHSA-f29h-pxvx-f335"},{"ecosystem":"npm","name":"@pkgr/core","purl":"pkg:npm/%40pkgr/core","ranges":[">=0.2.8 <0.2.9"],"fixed":["0.2.9"],"advisory":"GHSA-f29h-pxvx-f335"},{"ecosystem":"npm","name":"napi-postinstall","purl":"pkg:npm/napi-postinstall","ranges":[">=0.3.1 <0.3.2"],"fixed":["0.3.2"],"advisory":"GHSA-f29h-pxvx-f335"},{"ecosystem":"npm","name":"got-fetch","purl":"pkg:npm/got-fetch","ranges":[">=5.1.11 <6.0.0"],"fixed":["6.0.0"],"advisory":"GHSA-f29h-pxvx-f335"}],"cwes":["CWE-506"],"aliases":["GHSA-f29h-pxvx-f335"],"references":[{"url":"https://socket.dev/blog/npm-phishing-campaign-leads-to-prettier-tooling-packages-compromise","tags":["Third Party Advisory","article","web"]},{"url":"https://www.bleepingcomputer.com/news/security/popular-npm-linter-packages-hijacked-via-phishing-to-drop-malware/","tags":["exploit","Exploit","Third Party Advisory","web"]},{"url":"https://github.com/prettier/eslint-config-prettier/issues/339","tags":["Issue Tracking","report","web"]},{"url":"https://www.npmjs.com/package/eslint-config-prettier?activeTab=versions","tags":["Product","web"]},{"url":"https://www.stepsecurity.io/blog/supply-chain-security-alert-eslint-config-prettier-package-shows-signs-of-compromise","tags":["Exploit","Third Party Advisory","article","web"]},{"url":"https://news.ycombinator.com/item?id=44609732","tags":["Issue Tracking","web"]},{"url":"https://news.ycombinator.com/item?id=44608811","tags":["Issue Tracking","web"]},{"url":"https://github.com/community-scripts/ProxmoxVE/discussions/6115","tags":["Third Party Advisory","web"]},{"url":"https://www.endorlabs.com/learn/cve-2025-54313-eslint-config-prettier-compromise----high-severity-but-windows-only","tags":["Third Party Advisory","web"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-54313","tags":["government-resource","US Government Resource","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/54xxx/CVE-2025-54313.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-54313","tags":["advisory"]},{"url":"https://github.com/prettier/eslint-config-prettier/commit/9b0b0a47ec28a7a83cf65e8436a8776910379385","tags":["web"]},{"url":"https://github.com/prettier/eslint-plugin-prettier/commit/ec39dd4400f10c52d10cd991c10fa8de51ceb854","tags":["web"]},{"url":"https://github.com/un-ts/napi-postinstall/commit/38b4e95cf554e2549b9e1e2c4ff6bff4da9a65f9","tags":["web"]},{"url":"https://github.com/un-ts/pkgr/commit/e1420c99e44d8a2ae949381f9fbe1af5ba9cb1dd","tags":["web"]},{"url":"https://github.com/un-ts/synckit/commit/8f2ee32d4f75736a1c8d7e1101190a71e48909e4","tags":["web"]},{"url":"https://www.bleepingcomputer.com/news/security/popular-npm-linter-packages-hijacked-via-phishing-to-drop-malware","tags":["web"]},{"url":"https://secure.software/npm/packages/got-fetch","tags":["web"]},{"url":"https://github.com/prettier/eslint-config-prettier","tags":["package"]},{"url":"https://checkmarx.com/zero-post/supply-chain-phishing-campaign-drops-more-malware-into-npm-got-fetch-5-1","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":true,"kev":true,"kevAdded":"2026-01-22","kevDue":"2026-02-12","kevEntry":{"cveID":"CVE-2025-54313","vendorProject":"Prettier","product":"eslint-config-prettier","vulnerabilityName":"Prettier eslint-config-prettier Embedded Malicious Code Vulnerability","dateAdded":"2026-01-22","shortDescription":"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.","requiredAction":"Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.","dueDate":"2026-02-12","knownRansomwareCampaignUse":"Unknown","notes":"This vulnerability could affect an open-source component, third-party library, protocol, or proprietary implementation that could be used by different products. For more information, please see: https://www.npmjs.com/package/eslint-config-prettier?activeTab=versions ; https://github.com/prettier/eslint-config-prettier/issues/339#issuecomment-3090304490 ; https://nvd.nist.gov/vuln/detail/CVE-2025-54313","cwes":["CWE-506"]},"ssvc":{"exploitation":"active","automatable":"no","technicalImpact":"partial"},"epss":0.05125,"epssPercentile":0.92553,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-54313","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-54313","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-54313","ok":true,"note":"6 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-f29h-pxvx-f335","ok":true,"note":"GHSA-f29h-pxvx-f335"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"added 2026-01-22"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-54313","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":["Exploited in the wild (CISA KEV)"],"attention":null}