Critical Malicious Code Vulnerability in @posthog/databricks-plugin
Summary
MAL-2025-190876: Malicious code in @posthog/databricks-plugin (npm). Affects @posthog/databricks-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/databricks-plugin is an npm package designed to integrate Databricks with PostHog, providing analytics and data insights for users. It is widely used in data-driven applications to enhance user experience and optimize performance. However, recent findings have revealed that this package contains malicious code, posing significant security risks to applications utilizing it.
Vulnerability Detail
The vulnerability originates from the presence of malicious code within the @posthog/databricks-plugin package, specifically in version 0.0.8. This malicious code can lead to unauthorized access, data breaches, and potential exploitation of the systems that depend on this package. The code was identified by Amazon Inspector, highlighting the importance of scrutinizing third-party packages for security threats.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @posthog/databricks-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, you can remove the @posthog/databricks-plugin package from your project until a secure version is released. Use the following command to uninstall the package: npm uninstall @posthog/databricks-plugin.
Conclusion
The discovery of malicious code in the @posthog/databricks-plugin package underscores the importance of maintaining vigilance over third-party dependencies. Users are advised to update or remove the package to safeguard their applications against potential threats.
See every vulnerability recorded for @posthog/databricks-plugin →
FAQ
The malicious code can lead to unauthorized access and data breaches, compromising the security of applications using the package.
You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without any signup.
If immediate updates are not possible, consider removing the package as a temporary measure to mitigate risks.
The vulnerability was discovered by Amazon Inspector, which analyzes packages for security threats.
Currently, version 0.0.8 is identified as containing malicious code. Always check the package repository for updates on affected versions.