Malicious Code Vulnerability in static-content-cannabis Package
Summary
MAL-2026-1856: Malicious code in static-content-cannabis (npm). Affects static-content-cannabis versions 999.0.0. 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 static-content-cannabis package is an npm module designed for managing and serving static content related to cannabis. It provides functionalities that allow developers to easily integrate cannabis-related content into their applications. However, this package has been identified to contain malicious code, posing significant security risks to users who implement it in their projects.
Vulnerability Detail
The vulnerability originates from a malicious code injection within the static-content-cannabis package. This code can potentially compromise the security of applications that utilize this package, leading to unauthorized access, data breaches, or other malicious activities. The specific version affected is 999.0.0, which has been flagged for containing harmful code that could exploit users' systems.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall static-content-cannabis
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 static-content-cannabis package from your project until a secure version is released. You can do this by running the following command: npm uninstall static-content-cannabis. This will prevent any potential exploitation from the malicious code.
Conclusion
The static-content-cannabis package has been flagged for containing malicious code that poses a serious security risk. Users are advised to update or remove the package to protect their applications from potential exploitation. Regular monitoring for vulnerabilities using tools like Vulert can help maintain application security.
See every vulnerability recorded for static-content-cannabis →
FAQ
It is an npm module used for managing and serving static content related to cannabis.
The vulnerability involves malicious code that can compromise the security of applications using the affected package.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
You should immediately update the static-content-cannabis package to a secure version or uninstall it until a patch is available.
The vulnerability was identified by ReversingLabs, a cybersecurity firm specializing in threat detection.