Critical Malicious Code Vulnerability in ch-react-menu Package
Summary
MAL-2025-16754: Malicious code in ch-react-menu (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 ch-react-menu package is an npm library designed to provide a customizable and accessible menu component for React applications. It allows developers to create dynamic menus with various features, enhancing user experience in web applications. However, this package has been identified to contain malicious code, posing significant risks to applications that utilize it.
Vulnerability Detail
The vulnerability stems from the presence of malicious code within the ch-react-menu package. This code can potentially compromise the security of applications using the package, leading to unauthorized access, data breaches, or other malicious activities. The issue was introduced in version 0 and affects all subsequent versions, making it critical for developers to address this vulnerability promptly.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall ch-react-menu
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, you can avoid using the ch-react-menu package and implement a custom menu solution or utilize another well-maintained package that does not have known vulnerabilities.
Conclusion
The ch-react-menu package has been found to contain malicious code, posing serious risks to applications that utilize it. Developers are urged to remove the package and consider alternatives to ensure the security of their applications. Monitoring tools like Vulert can assist in identifying vulnerabilities in real-time.
See every vulnerability recorded for ch-react-menu →
FAQ
ch-react-menu is an npm package that provides a customizable menu component for React applications, allowing developers to enhance user navigation.
The malicious code was identified through security assessments conducted by Amazon Inspector, which flagged the package for containing harmful elements.
Using the compromised ch-react-menu package can lead to unauthorized access to sensitive data, data breaches, and other security vulnerabilities in your application.
You can use Vulert, a tool that monitors and alerts for open-source vulnerabilities in your software. It requires only the package-lock.json file for real-time alerts.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.