Skip to main content
MalwarePublished

@posthog/nextjs-config (npm) · Malicious Code

Affects @posthog/nextjs-configSource GCVE Database

0

Malicious package : remove @posthog/nextjs-config and rotate any secrets on hosts that installed it.

Data as of 18 Nov 2026, 02:05 UTC

Classification

Malicious package

Published to npm · OSV MAL-2025-190887

What to do

Remove @posthog/nextjs-config 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
npm@posthog/nextjs-configAffected
  • =1.5.1
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/nextjs-config version 1.5.1 was found to contain malicious code. This malware, identified as the Sha1-Hulud: The Second Coming NPM worm, steals tokens and credentials, publishes them to GitHub, propagates itself to other NPM packages owned by the user, and establishes persistence via a GitHub action. It may also destroy the user's home directory.

References

Community reviews

Loading reviews…