Vulnerabilities in pkg:npm/eslint-plugin-prettier

PACKAGE
Advisory Identifier: GHSA-f29h-pxvx-f335
Advisory Summary

CVE-2025-54313 is a HIGH (CVSS 7.5) eslint-config-prettier, eslint-plugin-prettier, synckit, @pkgr/core, napi-postinstall vulnerability (CWE-506: Embedded Malicious Code) affecting Synckit libraries in the npm ecosystem. The issue involves eslint-config-prettier, eslint-plugin-prettier, synckit, @pkgr/core, napi-postinstall have embedded malicious code. Remediation is available by upgrading affected packages to version 0.11.10, 8.10.2, 9.1.2, 10.1.8, 4.2.4, 0.2.9, 0.3.2, 6.0.0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/eslint-plugin-prettier

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/eslint-plugin-prettier. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-f29h-pxvx-f335 CVE-2025-54313 HIGH eslint-config-prettier, eslint-plugin-prettier, synckit, @pkgr/core, napi-postinstall have embedded malicious code

CVE-2025-54313 at a Glance

CVE Identifier CVE-2025-54313
GHSA Identifier GHSA-f29h-pxvx-f335
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-506: Embedded Malicious Code
Affected Product Synckit
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2025-54313

To remediate this vulnerability, upgrade all affected Synckit dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

synckit fixed: 0.11.10
npm install synckit@0.11.10
eslint-config-prettier fixed: 8.10.2
npm install eslint-config-prettier@8.10.2
eslint-config-prettier fixed: 9.1.2
npm install eslint-config-prettier@9.1.2
eslint-config-prettier fixed: 10.1.8
npm install eslint-config-prettier@10.1.8
eslint-plugin-prettier fixed: 4.2.4
npm install eslint-plugin-prettier@4.2.4
@pkgr/core fixed: 0.2.9
npm install @pkgr/core@0.2.9
napi-postinstall fixed: 0.3.2
npm install napi-postinstall@0.3.2
got-fetch fixed: 6.0.0
npm install got-fetch@6.0.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls synckit

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2025-54313, inspect your project dependencies using npm:

npm ls synckit

Analyze the terminal output to locate any version of Synckit in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.11.10), your application is affected.

Note: The npm ls synckit command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-506: Embedded Malicious Code, where the product contains code that appears to be malicious in nature. In Synckit, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2025-54313 Affected Synckit Versions

8 component(s)
Fixed Versions:
0.11.108.10.29.1.210.1.84.2.40.2.90.3.26.0.0
Product / Package Ecosystem Affected Versions Fixed Version
synckit
npm
≥ 0.11.9
< 0.11.10
All 1 versions
0.11.9
0.11.10
eslint-config-prettier
npm
≥ 8.10.1
< 8.10.2
All 1 versions
8.10.1
8.10.2
eslint-config-prettier
npm
≥ 9.1.1
< 9.1.2
All 1 versions
9.1.1
9.1.2
eslint-config-prettier
npm
≥ 10.1.6
< 10.1.8
10.1.8
eslint-plugin-prettier
npm
≥ 4.2.2
< 4.2.4
4.2.4
@pkgr/core
npm
≥ 0.2.8
< 0.2.9
All 1 versions
0.2.8
0.2.9
napi-postinstall
npm
≥ 0.3.1
< 0.3.2
All 1 versions
0.3.1
0.3.2
got-fetch
npm
≥ 5.1.11
< 6.0.0
6.0.0

References

NVD — CVE-2025-54313 NVD
https://nvd.nist.gov/vuln/detail/CVE-2025-54313
Synckit Source Repository REPOSITORY
https://github.com/prettier/eslint-config-prettier/issues/339
Security Fix Commit FIX COMMIT
https://github.com/prettier/eslint-config-prettier/commit/9b0b0a47ec28a7a83cf65e8436a8776910379385
Security Fix Commit FIX COMMIT
https://github.com/prettier/eslint-plugin-prettier/commit/ec39dd4400f10c52d10cd991c10fa8de51ceb854
Security Fix Commit FIX COMMIT
https://github.com/un-ts/napi-postinstall/commit/38b4e95cf554e2549b9e1e2c4ff6bff4da9a65f9
Security Fix Commit FIX COMMIT
https://github.com/un-ts/pkgr/commit/e1420c99e44d8a2ae949381f9fbe1af5ba9cb1dd
Security Fix Commit FIX COMMIT
https://github.com/un-ts/synckit/commit/8f2ee32d4f75736a1c8d7e1101190a71e48909e4
Synckit Security Information SECURITY
https://www.stepsecurity.io/blog/supply-chain-security-alert-eslint-config-prettier-package-shows-signs-of-compromise
www.npmjs.com/package/eslint-conf... WEB
https://www.npmjs.com/package/eslint-config-prettier?activeTab=versions
www.endorlabs.com/learn/cve-2025-5431... WEB
https://www.endorlabs.com/learn/cve-2025-54313-eslint-config-prettier-compromise----high-severity-but-windows-only
www.cisa.gov/known-exploited-vul... WEB
https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-54313
Synckit Security Information SECURITY
https://www.bleepingcomputer.com/news/security/popular-npm-linter-packages-hijacked-via-phishing-to-drop-malware
socket.dev/blog/npm-phishing-c... WEB
https://socket.dev/blog/npm-phishing-campaign-leads-to-prettier-tooling-packages-compromise
secure.software/npm/packages/got-fe... WEB
https://secure.software/npm/packages/got-fetch
news.ycombinator.com/item WEB
https://news.ycombinator.com/item?id=44609732
news.ycombinator.com/item WEB
https://news.ycombinator.com/item?id=44608811
Synckit Source Repository REPOSITORY
https://github.com/prettier/eslint-config-prettier
Synckit Source Repository REPOSITORY
https://github.com/community-scripts/ProxmoxVE/discussions/6115
checkmarx.com/zero-post/supply-ch... WEB
https://checkmarx.com/zero-post/supply-chain-phishing-campaign-drops-more-malware-into-npm-got-fetch-5-1

Frequently Asked Questions

What is CVE-2025-54313?
CVE-2025-54313 is a security vulnerability in Synckit involving eslint-config-prettier, eslint-plugin-prettier, synckit, @pkgr/core, napi-postinstall have embedded malicious code under CWE-506: Embedded Malicious Code.
Which Synckit versions are affected?
Affected versions include releases prior to 0.11.10, 8.10.2, 9.1.2, 10.1.8, 4.2.4, 0.2.9, 0.3.2, 6.0.0 across affected packages: synckit, eslint-config-prettier, eslint-plugin-prettier, @pkgr/core, napi-postinstall, got-fetch.
What version fixes CVE-2025-54313?
Upgrading to 0.11.10, 8.10.2, 9.1.2, 10.1.8, 4.2.4, 0.2.9, 0.3.2, 6.0.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is synckit affected?
Yes, synckit is affected in releases prior to 0.11.10. Upgrade your dependency to 0.11.10 or later.
Is eslint-config-prettier affected?
Yes, eslint-config-prettier is affected in releases prior to 8.10.2, 9.1.2, 10.1.8. Upgrade your dependency to 8.10.2, 9.1.2, 10.1.8 or later.
What is the CVSS score of CVE-2025-54313?
CVE-2025-54313 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:N.
What CWE is associated with CVE-2025-54313?
CVE-2025-54313 is classified under CWE-506: Embedded Malicious Code (The product contains code that appears to be malicious in nature.).
How can I check npm dependencies for CVE-2025-54313?
Run the dependency tree command: 'npm ls synckit'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-f29h-pxvx-f335",
  "modified" : "2026-01-22T21:52:56Z",
  "published" : "2025-07-19T18:30:33Z",
  "aliases" : [ "CVE-2025-54313" ],
  "summary" : "eslint-config-prettier, eslint-plugin-prettier, synckit, @pkgr/core, napi-postinstall have embedded malicious code",
  "details" : "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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "eslint-config-prettier"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "8.10.1"
      }, {
        "fixed" : "8.10.2"
      } ]
    } ],
    "versions" : [ "8.10.1" ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "eslint-config-prettier"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "9.1.1"
      }, {
        "fixed" : "9.1.2"
      } ]
    } ],
    "versions" : [ "9.1.1" ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "eslint-config-prettier"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "10.1.6"
      }, {
        "fixed" : "10.1.8"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 10.1.7"
    }
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "eslint-plugin-prettier"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.2.2"
      }, {
        "fixed" : "4.2.4"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 4.2.3"
    }
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "synckit"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.11.9"
      }, {
        "fixed" : "0.11.10"
      } ]
    } ],
    "versions" : [ "0.11.9" ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@pkgr/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.2.8"
      }, {
        "fixed" : "0.2.9"
      } ]
    } ],
    "versions" : [ "0.2.8" ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "napi-postinstall"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.3.1"
      }, {
        "fixed" : "0.3.2"
      } ]
    } ],
    "versions" : [ "0.3.1" ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "got-fetch"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.1.11"
      }, {
        "fixed" : "6.0.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 5.1.12"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-54313"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/prettier/eslint-config-prettier/issues/339"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/prettier/eslint-config-prettier/commit/9b0b0a47ec28a7a83cf65e8436a8776910379385"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/prettier/eslint-plugin-prettier/commit/ec39dd4400f10c52d10cd991c10fa8de51ceb854"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/un-ts/napi-postinstall/commit/38b4e95cf554e2549b9e1e2c4ff6bff4da9a65f9"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/un-ts/pkgr/commit/e1420c99e44d8a2ae949381f9fbe1af5ba9cb1dd"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/un-ts/synckit/commit/8f2ee32d4f75736a1c8d7e1101190a71e48909e4"
  }, {
    "type" : "WEB",
    "url" : "https://www.stepsecurity.io/blog/supply-chain-security-alert-eslint-config-prettier-package-shows-signs-of-compromise"
  }, {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/package/eslint-config-prettier?activeTab=versions"
  }, {
    "type" : "WEB",
    "url" : "https://www.endorlabs.com/learn/cve-2025-54313-eslint-config-prettier-compromise----high-severity-but-windows-only"
  }, {
    "type" : "WEB",
    "url" : "https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-54313"
  }, {
    "type" : "WEB",
    "url" : "https://www.bleepingcomputer.com/news/security/popular-npm-linter-packages-hijacked-via-phishing-to-drop-malware"
  }, {
    "type" : "WEB",
    "url" : "https://socket.dev/blog/npm-phishing-campaign-leads-to-prettier-tooling-packages-compromise"
  }, {
    "type" : "WEB",
    "url" : "https://secure.software/npm/packages/got-fetch"
  }, {
    "type" : "WEB",
    "url" : "https://news.ycombinator.com/item?id=44609732"
  }, {
    "type" : "WEB",
    "url" : "https://news.ycombinator.com/item?id=44608811"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/prettier/eslint-config-prettier"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/community-scripts/ProxmoxVE/discussions/6115"
  }, {
    "type" : "WEB",
    "url" : "https://checkmarx.com/zero-post/supply-chain-phishing-campaign-drops-more-malware-into-npm-got-fetch-5-1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-506" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-07-21T21:01:18Z",
    "nvd_published_at" : "2025-07-19T17:15:23Z"
  }
}