Critical Security Breach in @posthog/migrator3000-plugin: Malicious Code Detected
Summary
MAL-2025-191296: Malicious code in @posthog/migrator3000-plugin (npm). Affects @posthog/migrator3000-plugin versions 0.0.8. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The @posthog/migrator3000-plugin is an npm package designed to facilitate data migration for PostHog users. It is intended to streamline the process of moving data between different environments or versions of PostHog. However, this package has been compromised, making it susceptible to severe security risks that can affect users' data integrity and security.
Vulnerability Detail
The vulnerability stems from a malicious code injection by the Sha1-Hulud: The Second Coming NPM worm. This worm is designed to steal sensitive tokens and credentials from users, subsequently publishing them to GitHub. It can also propagate itself to other npm packages owned by the user and establish persistence through GitHub actions. Additionally, there is a risk that the worm may destroy the user's home directory, leading to significant data loss.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @posthog/migrator3000-plugin
If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
As a temporary measure, users should consider removing the @posthog/migrator3000-plugin from their project until a secure version is released. This can be done using the command: 'npm uninstall @posthog/migrator3000-plugin'. Additionally, users should review their GitHub repositories for any unauthorized changes or commits.
Conclusion
The @posthog/migrator3000-plugin has been compromised by a malicious worm, posing serious security risks to users. Immediate action is required to mitigate potential damage. Users should update or uninstall the package and monitor their systems for any unauthorized activity. Utilizing tools like Vulert can help in identifying and managing such vulnerabilities effectively.
See every vulnerability recorded for @posthog/migrator3000-plugin →
FAQ
Immediately uninstall the @posthog/migrator3000-plugin and check for any unauthorized access to your accounts.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without any signup.
The consequences include theft of sensitive information, unauthorized access to your GitHub repositories, and potential data loss.
Regularly update your packages, use tools like Vulert for monitoring, and conduct security audits on your dependencies.
Detailed information can be found in the vulnerability report on GitHub or through security advisories related to the npm ecosystem.