Critical Security Breach in @posthog/migrator3000-plugin: Malicious Code Detected

@posthog/migrator3000-plugin Updated 25 Nov 2025

Summary

25/11/2025
CRITICAL
No i
Critical
Not published

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 ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

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 →

Share this vulnerability

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.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback