npm

The prettlog npm Malware Advisory

Updated 11 Nov 2026 · Incident date 1 Apr 2026

GitHub flags prettlog as malware. npm has removed its original releases and replaced them with a security holding package.

GitHub published reviewed malware advisory GHSA-7m86-chx9-8rr7 for prettlog on 11 November 2026.

This page reports the advisory and npm registry facts. The removed releases were unavailable for code inspection.

What happened

GitHub classified the package as malware.

  • The advisory lists every version as affected and provides no patched version.
  • npm records 1.0.0 on 1 April 2026 and 4.7.0 on 4 May 2026.
  • Those releases are no longer available in the registry. npm now holds the name and serves 0.0.1-security.
  • The placeholder description is security holding package. The registry metadata does not explain the removed code.

Affected versions

  • The advisory range is >= 0.
  • The registry timeline lists original releases from 1.0.0 through 4.7.0.
  • 0.0.1-security is the registry holding package, not a restored original release.

How to check

Check your project dependency tree for the package and version. This command reads installed metadata and does not execute the package.

npm ls prettlog

What to do now

GitHub advises treating machines that installed or ran an affected release as compromised.

  1. Remove the affected package.
  2. From a separate computer, rotate secrets and keys stored on the affected machine.
  3. Do not assume package removal removes every malicious component.

What Vigilance would show

Vigilance checks each update before it installs. This is what a customer sees, rebuilt from the facts on this page.

On the computer, at install

Vigilance blocked `prettlog` 4.7.0. This version is too new or changed in a way Vigilance must check first.
The last safe version is 1.0.0. Install that version.

In the owner report

Bad update

prettlog 4.7.0

This update now downloads from the internet and runs other programs. The version before it did not.

  1. Ask the AI tool to swap prettlog to 1.0.0. That is the last safe version.

Frequently asked questions

What did the malicious code do?

The advisory gives no payload analysis, and the removed releases were unavailable for inspection. This page does not claim a verified technical mechanism.

Sources

  1. github.com/advisories/GHSA-7m86-chx9-8rr7
  2. registry.npmjs.org/prettlog

More supply chain attacks

All 145 attacks in the library · npm supply chain attacks · How to prevent supply chain attacks

Check the next update before you install it

Vigilance compares the version you trust with the new one. It names the one file that gained a power the old version did not have.

Start the free 14-day trialBrowse the attack library