Malicious Code Detected in ch-react-search Package
Summary
MAL-2025-16756: Malicious code in ch-react-search (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-search package is a JavaScript library used in React applications to facilitate search functionalities. It is designed to enhance user experience by providing efficient search capabilities. However, this package has been found to contain malicious code, posing significant security risks to applications that utilize it.
Vulnerability Detail
The vulnerability in the ch-react-search package originates from the inclusion of malicious code that can compromise the security of applications using this library. This code can lead to unauthorized access, data breaches, or other malicious activities. The issue affects all versions of the package starting from its introduction, making it critical for users to take immediate action to mitigate potential risks.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall ch-react-search
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, consider removing the ch-react-search package from your project until a secure version is released. You can uninstall it using the command: 'npm uninstall ch-react-search'.
Conclusion
The ch-react-search package has been identified as containing malicious code, which poses a significant risk to applications using it. Immediate action is required to update or remove the package to ensure the security of your application. Utilize tools like Vulert to monitor for vulnerabilities and stay informed.
See every vulnerability recorded for ch-react-search →
FAQ
ch-react-search is a JavaScript library for React applications that provides search functionalities.
The vulnerability involves malicious code that can compromise application security.
You can use Vulert, which monitors open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without any signup.
As a workaround, consider uninstalling the ch-react-search package until a secure version is available.
The vulnerability was identified by Amazon Inspector.