Malicious Code Detected in @posthog/snowflake-export-plugin - Critical Vulnerability Alert
Summary
MAL-2025-190893: Malicious code in @posthog/snowflake-export-plugin (npm). Affects @posthog/snowflake-export-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/snowflake-export-plugin is an npm package designed to facilitate the export of data from PostHog to Snowflake, a cloud-based data warehousing service. This package is utilized by developers to streamline data analytics processes. However, it has been identified to contain malicious code, posing significant risks to applications that integrate this plugin.
Vulnerability Detail
The vulnerability originates from a malicious code injection within the @posthog/snowflake-export-plugin package. This code can potentially compromise the security of applications using this package, leading to unauthorized access, data breaches, or other malicious activities. The specific version affected is 0.0.8, and the malicious code was identified by Amazon Inspector, highlighting the importance of monitoring dependencies for security threats.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @posthog/snowflake-export-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/snowflake-export-plugin from your project until a secure version is released. You can do this by executing: npm uninstall @posthog/snowflake-export-plugin.
Conclusion
The discovery of malicious code in the @posthog/snowflake-export-plugin poses a significant security threat to applications utilizing this package. It is crucial to take immediate action by updating or removing the affected package to safeguard your application from potential vulnerabilities.
See every vulnerability recorded for @posthog/snowflake-export-plugin →
FAQ
The malicious code can lead to unauthorized access and potential data breaches in applications using this package.
The affected version is 0.0.8 of the @posthog/snowflake-export-plugin.
You can use tools like Vulert, which monitors your package-lock.json file to alert you in real-time for open-source vulnerabilities.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected without needing to sign up.
If an immediate update is not possible, consider removing the package from your project as a temporary measure.