{"id":"CVE-2025-54313","aliases":["CVE-2025-54313","GHSA-f29h-pxvx-f335"],"related":[],"kind":"vulnerability","state":"published","title":"eslint-config-prettier, eslint-plugin-prettier, synckit, @pkgr/core, napi-postinstall have embedded malicious code","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"eslint-config-prettier 8.10.1, 9.1.1, 10.1.6 y 10.1.7 contiene código malicioso que compromete la cadena de suministro. Al instalar un paquete afectado, se ejecuta un archivo install.js que lanza el malware node-gyp.dll en Windows.","source":"nvd"},{"lang":"en","text":"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.","source":"kev"}],"published":"2025-07-19T00:00:00.000Z","modified":"2026-06-17T09:39:49.897Z","severity":{"scorer":"mitre","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"mitre","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-506"],"affected":[{"ranges":[{"type":"semver","version":"8.10.1","status":"affected"},{"type":"semver","version":"9.1.1","status":"affected"},{"type":"semver","version":"10.1.6","status":"affected"},{"type":"semver","version":"10.1.7","status":"affected"}],"vendor":"prettier","product":"eslint-config-prettier","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"8.10.1","status":"affected","fixed":"8.10.2"}],"ecosystem":"npm","package":"eslint-config-prettier","purl":"pkg:npm/eslint-config-prettier","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"9.1.1","status":"affected","fixed":"9.1.2"}],"ecosystem":"npm","package":"eslint-config-prettier","purl":"pkg:npm/eslint-config-prettier","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"10.1.6","status":"affected","fixed":"10.1.8"}],"ecosystem":"npm","package":"eslint-config-prettier","purl":"pkg:npm/eslint-config-prettier","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"4.2.2","status":"affected","fixed":"4.2.4"}],"ecosystem":"npm","package":"eslint-plugin-prettier","purl":"pkg:npm/eslint-plugin-prettier","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.11.9","status":"affected","fixed":"0.11.10"}],"ecosystem":"npm","package":"synckit","purl":"pkg:npm/synckit","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.2.8","status":"affected","fixed":"0.2.9"}],"ecosystem":"npm","package":"@pkgr/core","purl":"pkg:npm/%40pkgr/core","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.3.1","status":"affected","fixed":"0.3.2"}],"ecosystem":"npm","package":"napi-postinstall","purl":"pkg:npm/napi-postinstall","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"5.1.11","status":"affected","fixed":"6.0.0"}],"ecosystem":"npm","package":"got-fetch","purl":"pkg:npm/got-fetch","source":"ghsa"},{"ranges":[{"status":"affected","version":"8.10.1"},{"status":"affected","version":"9.1.1"},{"status":"affected","version":"10.1.6"},{"status":"affected","version":"10.1.7"}],"vendor":"prettier","product":"eslint-config-prettier","cpe":"cpe:2.3:a:prettier:eslint-config-prettier:8.10.1:*:*:*:*:node.js:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"4.2.2"},{"status":"affected","version":"4.2.3"}],"vendor":"prettier","product":"eslint-plugin-prettier","cpe":"cpe:2.3:a:prettier:eslint-plugin-prettier:4.2.2:*:*:*:*:node.js:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"0.11.9"}],"vendor":"un-ts","product":"synckit","cpe":"cpe:2.3:a:un-ts:synckit:0.11.9:*:*:*:*:node.js:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"0.2.8"}],"vendor":"un-ts","product":"pkgr/core","cpe":"cpe:2.3:a:un-ts:pkgr\\/core:0.2.8:*:*:*:*:node.js:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"5.1.1"},{"status":"affected","version":"5.1.2"}],"vendor":"alexghr","product":"got-fetch","cpe":"cpe:2.3:a:alexghr:got-fetch:5.1.1:*:*:*:*:node.js:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"0.3.1"}],"vendor":"un-ts","product":"napi-postinstall","cpe":"cpe:2.3:a:un-ts:napi-postinstall:0.3.1:*:*:*:*:node.js:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"1.29.0","fixed":"1.30.0"}],"vendor":"homarr","product":"homarr","cpe":"cpe:2.3:a:homarr:homarr:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"Prettier","product":"eslint-config-prettier","source":"kev"}],"references":[{"url":"https://socket.dev/blog/npm-phishing-campaign-leads-to-prettier-tooling-packages-compromise","tags":["third-party-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.bleepingcomputer.com/news/security/popular-npm-linter-packages-hijacked-via-phishing-to-drop-malware/","tags":["exploit","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/prettier/eslint-config-prettier/issues/339","tags":["issue-tracking","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.npmjs.com/package/eslint-config-prettier?activeTab=versions","tags":["kev","product","web"],"sources":["cvelist","ghsa","nvd","kev"]},{"url":"https://www.stepsecurity.io/blog/supply-chain-security-alert-eslint-config-prettier-package-shows-signs-of-compromise","tags":["exploit","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://news.ycombinator.com/item?id=44609732","tags":["issue-tracking","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://news.ycombinator.com/item?id=44608811","tags":["issue-tracking","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/community-scripts/ProxmoxVE/discussions/6115","tags":["third-party-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.endorlabs.com/learn/cve-2025-54313-eslint-config-prettier-compromise----high-severity-but-windows-only","tags":["third-party-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-54313","tags":["government-resource","us-government-resource","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-54313","tags":["advisory","kev"],"sources":["ghsa","kev"]},{"url":"https://github.com/prettier/eslint-config-prettier/commit/9b0b0a47ec28a7a83cf65e8436a8776910379385","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/prettier/eslint-plugin-prettier/commit/ec39dd4400f10c52d10cd991c10fa8de51ceb854","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/un-ts/napi-postinstall/commit/38b4e95cf554e2549b9e1e2c4ff6bff4da9a65f9","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/un-ts/pkgr/commit/e1420c99e44d8a2ae949381f9fbe1af5ba9cb1dd","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/un-ts/synckit/commit/8f2ee32d4f75736a1c8d7e1101190a71e48909e4","tags":["web"],"sources":["ghsa"]},{"url":"https://www.bleepingcomputer.com/news/security/popular-npm-linter-packages-hijacked-via-phishing-to-drop-malware","tags":["web"],"sources":["ghsa"]},{"url":"https://secure.software/npm/packages/got-fetch","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/prettier/eslint-config-prettier","tags":["package"],"sources":["ghsa"]},{"url":"https://checkmarx.com/zero-post/supply-chain-phishing-campaign-drops-more-malware-into-npm-got-fetch-5-1","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/prettier/eslint-config-prettier/issues/339#issuecomment-3090304490","tags":["kev"],"sources":["kev"]}],"credits":[],"assigner":"mitre","kev":{"dateAdded":"2026-01-22","dueDate":"2026-02-12","name":"Prettier eslint-config-prettier Embedded Malicious Code Vulnerability","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.","ransomware":false,"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"},"ssvc":{"scorer":"CISA-ADP","exploitation":"active","automatable":"no","technicalImpact":"partial","date":"2026-01-23T04:55:19.677Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-54313","url":"https://www.cve.org/CVERecord?id=CVE-2025-54313","licence":"CVE Terms of Use","modified":"2026-02-26T17:50:26.767Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-f29h-pxvx-f335","url":"https://github.com/advisories/GHSA-f29h-pxvx-f335","licence":"CC-BY-4.0","modified":"2026-02-03T03:09:09.088Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-54313","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-54313","licence":"Public domain","modified":"2026-06-17T09:39:49.897Z"},{"source":"kev","name":"CISA KEV","id":"CVE-2025-54313","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2025-54313","licence":"CC0-1.0","modified":"2026-01-22T00:00:00.000Z"}],"updatedAt":"2026-11-25T22:59:01.449Z","epss":{"score":0.05125,"percentile":0.9257,"date":"2026-12-01T12:00:22.000Z"}}