Malicious Code in react-18-viem (npm)
Summary
MAL-2023-8469: Malicious code in react-18-viem (npm). Affects react-18-viem versions 0.1.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 react-18-viem package is an npm package that is used in React applications. It provides functionality related to version 18 of React. The package is vulnerable to a malicious code injection.
Vulnerability Detail
The react-18-viem package has been identified as malicious by the OpenSSF Package Analysis project. The package communicates with a domain associated with malicious activity. This can lead to various security risks, including unauthorized access to user data, execution of arbitrary code, and potential compromise of the entire application.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall react-18-viem
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
There is no specific workaround mentioned for this vulnerability. The best course of action is to follow the recommended fix and remove the malicious package from your project.
Conclusion
The react-18-viem package has been identified as malicious and poses a significant security risk. It is crucial to remove this package from your project and replace it with a trusted alternative. Regularly updating dependencies is also important to ensure the security of your application. For further support on vulnerability remediation, you can contact DevNack.com.
See every vulnerability recorded for react-18-viem →
FAQ
React-18-viem is an npm package that provides functionality related to version 18 of React.
The OpenSSF Package Analysis project identified the malicious activity by analyzing the package's communication with a known malicious domain.
Using react-18-viem can lead to unauthorized access to user data, execution of arbitrary code, and compromise of the entire application.
To fix this vulnerability, remove the react-18-viem package from your project and replace it with a trusted alternative. Also, regularly update all dependencies to ensure you are using the latest secure versions.
There is no specific workaround mentioned for this vulnerability. The recommended fix is to remove the malicious package from your project.