Malicious Code Detected in castdemo Package - Security Alert
Summary
MAL-2025-16633: Malicious code in castdemo (npm). Affected versions are not published. 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 castdemo package is an npm library designed for demonstration purposes, often used in various applications for casting functionalities. However, it has been identified to contain malicious code, posing significant security risks to users and their applications. This vulnerability can lead to unauthorized access or data manipulation, making it critical for developers to address it promptly.
Vulnerability Detail
The vulnerability in the castdemo package stems from the inclusion of malicious code that can compromise the security of applications utilizing this library. This code may allow attackers to execute unauthorized actions, potentially leading to data breaches or system integrity issues. The issue was introduced in version 0 and affects all subsequent versions, making it imperative for users to take immediate action.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall castdemo
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 castdemo package from your project until a secure version is released. You can do this by running the command: npm uninstall castdemo.
Conclusion
The discovery of malicious code in the castdemo package poses a serious threat to application security. Users must take immediate action to update or remove the package to safeguard their applications. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.
See every vulnerability recorded for castdemo →
FAQ
The castdemo package is an npm library used for demonstration purposes, particularly for casting functionalities in applications.
The malicious code can potentially allow unauthorized access and manipulation of data within applications that utilize the castdemo package.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Check your application using the Vulert playground at Vulert Scanner without any signup.
Users are advised to check for a patched version of the castdemo package and update it as soon as it becomes available.
If immediate updates are not possible, consider removing the castdemo package from your project as a temporary measure.