MAL-2025-191402 Malicious code in posthog-js (npm)

Malicious package Published
Package
posthog-js
Registry
npm

What is MAL-2025-191402?

MAL-2025-191402 is a malicious package in posthog-js, published on 25 Nov 2025.

Official description

The package posthog-js was found to contain malicious code.

This package was compromised by the Sha1-Hulud: The Second Coming NPM worm. The malicious payload steals tokens and credentials and publishes them to GitHub. The worm will propogate itself to NPM packages the user owns and establish persistence is a GitHub action. The package may also destroy the user's home directory.

What should I do about MAL-2025-191402?

Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.

Sources

Is MAL-2025-191402 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free