Malicious Code Detected in @posthog/taxonomy-plugin: A Critical Security Alert
Summary
MAL-2025-190894: Malicious code in @posthog/taxonomy-plugin (npm). Affects @posthog/taxonomy-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/taxonomy-plugin is an npm package designed to facilitate taxonomy management within PostHog, a product analytics platform. This package allows users to categorize and manage data effectively, enhancing the analytical capabilities of the PostHog environment. However, it has recently been identified to contain malicious code, posing a significant security risk to users relying on this package.
Vulnerability Detail
The vulnerability originates from the inclusion of malicious code within version 0.0.8 of the @posthog/taxonomy-plugin. Detected by Amazon Inspector, this malicious code can potentially compromise the security of applications using this package, leading to unauthorized access, data breaches, or other malicious activities. Users are advised to take this threat seriously as it can have severe ramifications on application integrity and user data safety.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @posthog/taxonomy-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 workaround, consider removing the @posthog/taxonomy-plugin from your project until a secure version is confirmed. You can do this by running the command: 'npm uninstall @posthog/taxonomy-plugin'.
Conclusion
The discovery of malicious code in the @posthog/taxonomy-plugin poses a significant threat to users of this npm package. It is crucial to take immediate action by updating or removing the package to safeguard your applications. Utilizing tools like Vulert can further enhance your security posture by providing real-time vulnerability monitoring.
See every vulnerability recorded for @posthog/taxonomy-plugin →
FAQ
The malicious code is designed to exploit vulnerabilities in applications using the package, potentially leading to unauthorized access or data breaches.
You can use Vulert, which monitors open-source vulnerabilities in real-time. By simply using your package-lock.json file, you can check for vulnerabilities without any installation or signup.
If immediate updates are not possible, consider removing the package from your project as a temporary measure to mitigate risks.
Detailed information can be found in the vulnerability report published by Amazon Inspector and on the GitHub repository for the @posthog/taxonomy-plugin.
Yes, tools like Vulert can help you monitor and alert for open-source vulnerabilities in your software, providing real-time insights.