npm · Malicious package advisory
Malwareposthog-docusaurus
MAL-2025-190924
Malicious code in posthog-docusaurus (npm)
Details
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (317ab9fe546aa6930bf7fb3ee7c35c737d56963b41a4f3d4363abdb0ebfbfa49) The package posthog-docusaurus was found to contain malicious code. ## Source: google-open-source-security (23fc0b6db8cad6d0c736df282c72069978a4decbeeda1c9f25eaa15e59e5066b) 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.
Compromised versions (1)
- 2.0.6
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.