Malicious Code Detected in subchart Package - Security Alert
Summary
MAL-2025-6764: Malicious code in subchart (npm). Affects subchart versions >= 99.99.1. 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 subchart package is a tool within the npm ecosystem that is designed to facilitate the management of subcharts in various applications. It is commonly used for its ability to streamline the integration of multiple chart components, making it a valuable asset for developers. However, recent findings have revealed that this package is compromised, communicating with a domain linked to malicious activities, which poses significant risks to users and their applications.
Vulnerability Detail
The vulnerability stems from the subchart package version 99.99.1 and later, which has been identified to communicate with a domain associated with malicious activities. This can lead to unauthorized access, data breaches, and potential exploitation of the systems utilizing this package. The malicious code embedded within the package can compromise the integrity and security of applications, making it imperative for users to take immediate action to mitigate risks.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall subchart
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 measure, users can remove the subchart package from their project until a secure version is released. This can be done using the command: 'npm uninstall subchart'. Additionally, consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The discovery of malicious code in the subchart package highlights the importance of maintaining vigilance in software dependencies. Users are urged to update their packages promptly and utilize tools like Vulert to monitor for vulnerabilities. By taking proactive measures, developers can safeguard their applications against potential threats.
See every vulnerability recorded for subchart →
FAQ
The subchart package is an npm tool designed for managing subcharts in applications, streamlining the integration of multiple chart components.
The vulnerability involves the subchart package communicating with a domain linked to malicious activities, posing risks of unauthorized access and data breaches.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without any signup.
If an immediate update is not possible, consider uninstalling the subchart package and using alternative solutions until a secure version is available.
The vulnerability was identified by Amazon Inspector, a security tool that helps in detecting and managing vulnerabilities in software packages.