Malicious Code Detected in chakra-ui-2--react-utils: A Critical Security Alert
Summary
MAL-2026-273: Malicious code in chakra-ui-2--react-utils (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 chakra-ui-2--react-utils package is part of the Chakra UI framework, which is designed to provide accessible and reusable components for building user interfaces in React applications. This package is widely used for its utility functions that enhance the development experience. However, it has been identified to contain malicious code, posing a significant risk to applications that rely on it.
Vulnerability Detail
The vulnerability in chakra-ui-2--react-utils stems from the presence of malicious code that can compromise the integrity of applications utilizing this package. This issue was reported by Amazon Inspector, which detected the malicious code during a routine security scan. The ramifications of this vulnerability include potential data breaches, unauthorized access to sensitive information, and the possibility of further exploitation within the application ecosystem. Developers using this package are urged to take immediate action to mitigate the risks associated with this vulnerability.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall chakra-ui-2--react-utils
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 chakra-ui-2--react-utils package from your project until a secure version is released. You can do this by executing: npm uninstall chakra-ui-2--react-utils. Additionally, review your package-lock.json file to ensure that no other dependencies are relying on this vulnerable package.
Conclusion
The discovery of malicious code in the chakra-ui-2--react-utils package poses a serious threat to applications using it. Developers must take immediate action to update or remove the package to safeguard their applications from potential exploits. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.
See every vulnerability recorded for chakra-ui-2--react-utils →
FAQ
The malicious code can potentially allow unauthorized access to application data and compromise user security.
You can use the Vulert playground at Vulert Scanner to check if your application is affected without requiring any signup.
If an immediate update is not possible, consider removing the package temporarily and reviewing your application for any potential security risks.
While specific exploits have not been detailed, the presence of malicious code indicates a high risk of exploitation.
For further inquiries, you can contact Amazon Inspector at actran@amazon.com.