Skip to main content
MalwarePublished Updated

posthog-js (npm) · Malicious Code

Affects posthog-jsSource GCVE Database

0

Malicious package : remove posthog-js and rotate any secrets on hosts that installed it.

Data as of 20 Nov 2026, 01:30 UTC

Classification

Malicious package

Published to npm · OSV MAL-2025-191402

What to do

Remove posthog-js from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.

Affected software

ProductAffectedFixed in
npmposthog-jsAffected
  • =1.297.3
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

The npm package posthog-js version 1.297.3 was compromised by the Sha1-Hulud: The Second Coming NPM worm, which injects malicious code. This malware steals tokens and credentials, exfiltrating them to GitHub. It also propagates itself to other NPM packages owned by the user and establishes persistence via a GitHub action. Additionally, it may destroy the user's home directory.

References

Community reviews

Loading reviews…