Skip to content
supplychainattack.orgSupply chain attack incident catalog
activecritical

Malware in prettier_v2

Malware discovered in the npm package prettier_v2. Installation results in full system compromise with potential for complete control by external actors.

ShareXLinkedInHacker News
Disclosed
Last updated
Blast radius
Any system with prettier_v2 installed; full system compromise possible
Ecosystems
Attack vectors
Affected entities
  • prettier_v2npm package

A malicious version of the npm package prettier_v2 has been identified containing malware. According to the GitHub Advisory (GHSA-cmfj-34j9-8w66), any computer with this package installed or running should be considered fully compromised.\n\nThe advisory recommends that all secrets and keys stored on affected computers be rotated immediately from a different, uncompromised system. While the package should be removed, there is no guarantee that removal will eliminate all malicious software that may have been installed as a result of the compromise.\n\nThis represents a critical supply chain attack affecting npm users who installed the malicious version of prettier_v2.

Indicators of compromise

Packages
  • prettier_v2

Remediation

  • Immediately isolate any computer with prettier_v2 installed from the network
  • Rotate all secrets, API keys, and credentials from a different, uncompromised computer
  • Remove the prettier_v2 package from all affected systems
  • Perform a full security audit and malware scan on affected systems
  • Review system logs and access logs for signs of unauthorized activity during the period the package was installed
  • Consider full system reimaging if full compromise is suspected

Sources

  1. GitHub Advisory GHSA-cmfj-34j9-8w66 · GitHub Advisory Database

Cite this entry

"Malware in prettier_v2." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed June 15, 2026; last updated June 16, 2026. https://supplychainattack.org/incident/malware-in-prettier-v2-80pqlg

Suggest a correction

Found an error or have a newer source? Corrections to factual errors take priority over new entries.

  1. containedcritical

    Malware in flow-lending

    The npm package flow-lending was found to contain malware, resulting in full system compromise of any computer with the package installed or running. GitHub Security Advisory GHSA-pgcr-8w67-72j9 was published on 2026-06-16.

    npmCompromised package
  2. containedcritical

    Malware in flow-lending-sdk

    Malware was discovered in the npm package flow-lending-sdk. Systems with this package installed or running are considered fully compromised, with potential for complete system takeover.

    npmCompromised package
  3. containedcritical

    Malware in janus-flow

    Malware was discovered in the npm package janus-flow, resulting in full system compromise of any computer with the package installed or running. All secrets and keys on affected systems should be rotated immediately from a different computer.

    npmCompromised package
  4. containedcritical

    Malware in ttspc-server-sample

    The npm package ttspc-server-sample contains malware that grants full control of affected systems. Any computer with this package installed or running should be considered fully compromised.

    npmCompromised package