{
  "id": "CVE-2025-54313",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-54313",
  "published_at": "2025-07-19T00:00:00Z",
  "title": "Prettier eslint-config-prettier Embedded Malicious Code Vulnerability",
  "vendor": "prettier",
  "product": "eslint-config-prettier",
  "cvss": {
    "score": 7.5,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:N"
  },
  "kev": {
    "in_kev": true,
    "added_at": "2026-01-22",
    "known_ransomware_campaign_use": "Unknown",
    "days_after_publication": 187
  },
  "first_poc": {
    "created_at": "2025-07-26T11:32:20Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 7.5,
    "repo": "nihilor/cve-2025-54313",
    "source": "github"
  },
  "poc_repo_count": 1,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-506",
  "cpes": [
    "cpe:2.3:a:alexghr:got-fetch:5.1.1:*:*:*:*:node.js:*:*",
    "cpe:2.3:a:alexghr:got-fetch:5.1.2:*:*:*:*:node.js:*:*",
    "cpe:2.3:a:homarr:homarr:*:*:*:*:*:*:*:*",
    "cpe:2.3:a:prettier:eslint-config-prettier:10.1.6:*:*:*:*:node.js:*:*",
    "cpe:2.3:a:prettier:eslint-config-prettier:10.1.7:*:*:*:*:node.js:*:*",
    "cpe:2.3:a:prettier:eslint-config-prettier:8.10.1:*:*:*:*:node.js:*:*",
    "cpe:2.3:a:prettier:eslint-config-prettier:9.1.1:*:*:*:*:node.js:*:*",
    "cpe:2.3:a:prettier:eslint-plugin-prettier:4.2.2:*:*:*:*:node.js:*:*",
    "cpe:2.3:a:prettier:eslint-plugin-prettier:4.2.3:*:*:*:*:node.js:*:*",
    "cpe:2.3:a:un-ts:napi-postinstall:0.3.1:*:*:*:*:node.js:*:*",
    "cpe:2.3:a:un-ts:pkgr\\/core:0.2.8:*:*:*:*:node.js:*:*",
    "cpe:2.3:a:un-ts:synckit:0.11.9:*:*:*:*:node.js:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.5
  },
  "repos": [
    {
      "repo": "nihilor/cve-2025-54313",
      "url": "https://github.com/nihilor/cve-2025-54313",
      "created_at": "2025-07-26T11:32:20Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2015-05-29T14:48:14Z"
    },
    {
      "repo": "Paspke/scavenger_scanner",
      "url": "https://github.com/Paspke/scavenger_scanner",
      "created_at": "2025-07-26T22:45:15Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 0,
      "is_poc": "no",
      "kind": "detection",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2022-08-30T18:35:02Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "prettier",
        "product": "eslint-config-prettier",
        "ranges": [
          "8.10.1",
          "9.1.1",
          "10.1.6",
          "10.1.7"
        ],
        "fixed_in": null
      },
      {
        "vendor": "",
        "product": "eslint-config-prettier",
        "ranges": [
          "\u003e= 8.10.1, \u003c 8.10.2"
        ],
        "fixed_in": [
          "8.10.2"
        ],
        "ecosystem": "npm",
        "advisory": "GHSA-f29h-pxvx-f335"
      },
      {
        "vendor": "",
        "product": "eslint-config-prettier",
        "ranges": [
          "\u003e= 9.1.1, \u003c 9.1.2"
        ],
        "fixed_in": [
          "9.1.2"
        ],
        "ecosystem": "npm",
        "advisory": "GHSA-f29h-pxvx-f335"
      },
      {
        "vendor": "",
        "product": "eslint-config-prettier",
        "ranges": [
          "\u003e= 10.1.6, \u003c 10.1.8"
        ],
        "fixed_in": [
          "10.1.8"
        ],
        "ecosystem": "npm",
        "advisory": "GHSA-f29h-pxvx-f335"
      },
      {
        "vendor": "",
        "product": "eslint-plugin-prettier",
        "ranges": [
          "\u003e= 4.2.2, \u003c 4.2.4"
        ],
        "fixed_in": [
          "4.2.4"
        ],
        "ecosystem": "npm",
        "advisory": "GHSA-f29h-pxvx-f335"
      },
      {
        "vendor": "",
        "product": "synckit",
        "ranges": [
          "\u003e= 0.11.9, \u003c 0.11.10"
        ],
        "fixed_in": [
          "0.11.10"
        ],
        "ecosystem": "npm",
        "advisory": "GHSA-f29h-pxvx-f335"
      },
      {
        "vendor": "",
        "product": "@pkgr/core",
        "ranges": [
          "\u003e= 0.2.8, \u003c 0.2.9"
        ],
        "fixed_in": [
          "0.2.9"
        ],
        "ecosystem": "npm",
        "advisory": "GHSA-f29h-pxvx-f335"
      },
      {
        "vendor": "",
        "product": "napi-postinstall",
        "ranges": [
          "\u003e= 0.3.1, \u003c 0.3.2"
        ],
        "fixed_in": [
          "0.3.2"
        ],
        "ecosystem": "npm",
        "advisory": "GHSA-f29h-pxvx-f335"
      },
      {
        "vendor": "",
        "product": "got-fetch",
        "ranges": [
          "\u003e= 5.1.11, \u003c 6.0.0"
        ],
        "fixed_in": [
          "6.0.0"
        ],
        "ecosystem": "npm",
        "advisory": "GHSA-f29h-pxvx-f335"
      }
    ],
    "upgrade": [
      "Upgrade eslint-config-prettier to 8.10.2 or later.",
      "Upgrade eslint-config-prettier to 9.1.2 or later.",
      "Upgrade eslint-config-prettier to 10.1.8 or later.",
      "Upgrade eslint-plugin-prettier to 4.2.4 or later.",
      "Upgrade synckit to 0.11.10 or later.",
      "Upgrade @pkgr/core to 0.2.9 or later.",
      "Upgrade napi-postinstall to 0.3.2 or later.",
      "Upgrade got-fetch to 6.0.0 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
