{"answers":{"affected":"16 open source packages ship an affected version, including eslint-config-prettier, @pkgr/core and eslint-plugin-prettier. It affects 7 products.","exploited":"Yes. Attackers have exploited CVE-2025-54313 in the wild since at least 22 Jan 2026.","fix":"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.","what":"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."},"fix_prompt":"Check this codebase for CVE-2025-54313 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: Yes. Attackers have exploited CVE-2025-54313 in the wild since at least 22 Jan 2026.\n\nAffected packages and fixed versions:\n- eslint-config-prettier (npm): affected from 10.1.6; fixed in 10.1.8\n- eslint-config-prettier (npm): affected from 10.1.6; fixed in 10.1.8\n- eslint-config-prettier (npm): affected from 8.10.1; fixed in 8.10.2\n- eslint-config-prettier (npm): affected from 8.10.1; fixed in 8.10.2\n- eslint-config-prettier (npm): affected from 9.1.1; fixed in 9.1.2\n- eslint-config-prettier (npm): affected from 9.1.1; fixed in 9.1.2\n- @pkgr/core (npm): affected from 0.2.8; fixed in 0.2.9\n- @pkgr/core (npm): affected from 0.2.8; fixed in 0.2.9\n- eslint-plugin-prettier (npm): affected from 4.2.2; fixed in 4.2.4\n- eslint-plugin-prettier (npm): affected from 4.2.2; fixed in 4.2.4\n- got-fetch (npm): affected from 5.1.11; fixed in 6.0.0\n- got-fetch (npm): affected from 5.1.11; fixed in 6.0.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-54313/ (Markdown: https://insights.sbomify.com/CVE-2025-54313/index.md)","id":"CVE-2025-54313","markdown":"https://insights.sbomify.com/CVE-2025-54313/index.md","name":"CVE-2025-54313","record":{"aliases":["GHSA-f29h-pxvx-f335"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"npm linting config","requires_auth":"none","summary":"Malicious code in eslint-config-prettier executes malware during installation on Windows, requiring users to upgrade to a safe version.","user_interaction":"not_required","vuln_class":"supply_chain"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"got-fetch","vendor":"alexghr"},{"product":"homarr","vendor":"homarr"},{"product":"eslint-config-prettier","vendor":"prettier"},{"product":"eslint-plugin-prettier","vendor":"prettier"},{"product":"napi-postinstall","vendor":"un-ts"},{"product":"pkgr\\/core","vendor":"un-ts"},{"product":"synckit","vendor":"un-ts"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-506","name":"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":"2025-07-26","github_poc":2,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-07-26T11:32:20Z","kind":"github_poc","ref":"https://github.com/nihilor/cve-2025-54313","stars":0,"title":"Checks projects for compromised packages, suspicious files, and import statements."},{"date":"2025-07-26T22:45:15Z","kind":"github_poc","ref":"https://github.com/Paspke/scavenger_scanner","stars":0,"title":"Detect CVE-2025-54313 eslint-config-prettier supply chain attack IOCs on Windows"}],"tier":"exploited"},"has_fix":true,"headline":"Prettier eslint-config-prettier Embedded Malicious Code","id":"CVE-2025-54313","indexable":true,"kev":{"dateAdded":"2026-01-22","dueDate":"2026-02-12","knownRansomwareCampaignUse":"Unknown","product":"eslint-config-prettier","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.","vendorProject":"Prettier","vulnerabilityName":"Prettier eslint-config-prettier Embedded Malicious Code Vulnerability"},"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"supply_chain","year":"2025"},"n_packages":16,"n_references":7,"next":{"headline":"Command injection in Thor","id":"CVE-2025-54314"},"packages":[{"ecosystem":"npm","fixed":["0.2.9"],"introduced":["0.2.8"],"last_affected":[],"package":"@pkgr/core","purl":null,"source":"GHSA-f29h-pxvx-f335"},{"ecosystem":"npm","fixed":["0.2.9"],"introduced":["0.2.8"],"last_affected":[],"package":"@pkgr/core","purl":"pkg:npm/%40pkgr/core","source":"GHSA-f29h-pxvx-f335"},{"ecosystem":"npm","fixed":["10.1.8"],"introduced":["10.1.6"],"last_affected":[],"package":"eslint-config-prettier","purl":null,"source":"GHSA-f29h-pxvx-f335"},{"ecosystem":"npm","fixed":["10.1.8"],"introduced":["10.1.6"],"last_affected":[],"package":"eslint-config-prettier","purl":"pkg:npm/eslint-config-prettier","source":"GHSA-f29h-pxvx-f335"},{"ecosystem":"npm","fixed":["8.10.2"],"introduced":["8.10.1"],"last_affected":[],"package":"eslint-config-prettier","purl":null,"source":"GHSA-f29h-pxvx-f335"},{"ecosystem":"npm","fixed":["8.10.2"],"introduced":["8.10.1"],"last_affected":[],"package":"eslint-config-prettier","purl":"pkg:npm/eslint-config-prettier","source":"GHSA-f29h-pxvx-f335"},{"ecosystem":"npm","fixed":["9.1.2"],"introduced":["9.1.1"],"last_affected":[],"package":"eslint-config-prettier","purl":null,"source":"GHSA-f29h-pxvx-f335"},{"ecosystem":"npm","fixed":["9.1.2"],"introduced":["9.1.1"],"last_affected":[],"package":"eslint-config-prettier","purl":"pkg:npm/eslint-config-prettier","source":"GHSA-f29h-pxvx-f335"},{"ecosystem":"npm","fixed":["4.2.4"],"introduced":["4.2.2"],"last_affected":[],"package":"eslint-plugin-prettier","purl":null,"source":"GHSA-f29h-pxvx-f335"},{"ecosystem":"npm","fixed":["4.2.4"],"introduced":["4.2.2"],"last_affected":[],"package":"eslint-plugin-prettier","purl":"pkg:npm/eslint-plugin-prettier","source":"GHSA-f29h-pxvx-f335"},{"ecosystem":"npm","fixed":["6.0.0"],"introduced":["5.1.11"],"last_affected":[],"package":"got-fetch","purl":null,"source":"GHSA-f29h-pxvx-f335"},{"ecosystem":"npm","fixed":["6.0.0"],"introduced":["5.1.11"],"last_affected":[],"package":"got-fetch","purl":"pkg:npm/got-fetch","source":"GHSA-f29h-pxvx-f335"},{"ecosystem":"npm","fixed":["0.3.2"],"introduced":["0.3.1"],"last_affected":[],"package":"napi-postinstall","purl":null,"source":"GHSA-f29h-pxvx-f335"},{"ecosystem":"npm","fixed":["0.3.2"],"introduced":["0.3.1"],"last_affected":[],"package":"napi-postinstall","purl":"pkg:npm/napi-postinstall","source":"GHSA-f29h-pxvx-f335"},{"ecosystem":"npm","fixed":["0.11.10"],"introduced":["0.11.9"],"last_affected":[],"package":"synckit","purl":null,"source":"GHSA-f29h-pxvx-f335"},{"ecosystem":"npm","fixed":["0.11.10"],"introduced":["0.11.9"],"last_affected":[],"package":"synckit","purl":"pkg:npm/synckit","source":"GHSA-f29h-pxvx-f335"}],"prev":{"headline":"Path traversal in qBittorrent","id":"CVE-2025-54310"},"products":["eslint-config-prettier"],"published":"2025-07-19","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"open","licence":"CC0 1.0","name":"CISA KEV"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"active","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-02-26","vendors":["prettier"]},"summary":"Malicious code in eslint-config-prettier executes malware during installation on Windows, requiring users to upgrade to a safe version.","url":"https://insights.sbomify.com/CVE-2025-54313/"}