Malicious Code Detected in @posthog/github-release-tracking-plugin: Security Alert
Summary
MAL-2025-190880: Malicious code in @posthog/github-release-tracking-plugin (npm). Affects @posthog/github-release-tracking-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/github-release-tracking-plugin is an npm package designed to facilitate tracking GitHub releases for PostHog, an open-source analytics platform. This plugin aims to enhance the user experience by providing seamless integration with GitHub's release management features. However, it has recently been identified to contain malicious code, posing significant security risks to users who have integrated this plugin into their applications.
Vulnerability Detail
The vulnerability stems from the presence of malicious code within the @posthog/github-release-tracking-plugin package, specifically in version 0.0.8. This code could potentially compromise the security of applications using the plugin, leading to unauthorized access, data breaches, or other malicious activities. The source of this vulnerability has been traced back to Amazon Inspector, which flagged the package for containing harmful elements.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @posthog/github-release-tracking-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, users can remove the @posthog/github-release-tracking-plugin from their project until a secure version is available. This can be done using the command: 'npm uninstall @posthog/github-release-tracking-plugin'. Additionally, consider using alternative plugins that provide similar functionality without the associated risks.
Conclusion
The discovery of malicious code in the @posthog/github-release-tracking-plugin highlights the importance of monitoring open-source packages for vulnerabilities. Users are advised to take immediate action by updating or removing the affected package to safeguard their applications. Utilizing tools like Vulert can help in real-time monitoring of vulnerabilities in open-source software.
See every vulnerability recorded for @posthog/github-release-tracking-plugin →
FAQ
It is an npm package that helps track GitHub releases for the PostHog analytics platform.
The malicious code can compromise application security, potentially leading to unauthorized access or data breaches.
You can use Vulert, which monitors open-source vulnerabilities in your software. Check your application against this vulnerability using the Vulert playground at Vulert Scanner.
Currently, the affected version is 0.0.8. Users should check for updates or patches from the package maintainers.
If no update is available, it is recommended to uninstall the package and look for alternative solutions until a secure version is released.