Malicious Code in React (npm) - MAL-2024-2929
Summary
MAL-2024-2929: Malicious code in react (npm). Affects react versions 1.0.0 – 35.0.0. 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
React is a popular JavaScript library for building user interfaces. It is widely used in web development to create interactive and dynamic UI components. The vulnerability identified as MAL-2024-2929 affects the React package in the npm ecosystem. React allows developers to build reusable UI components, manage state, and efficiently update the user interface when data changes. However, this vulnerability involves the presence of malicious code within the React package, which poses a security risk to applications that depend on it.
Vulnerability Detail
The MAL-2024-2929 vulnerability in React is a false positive caused by problematic ingestion. It is important to note that this vulnerability has been withdrawn and is no longer considered a valid security concern. The malicious code reported by the reversing-labs source was found in versions 35.0.0 and 1.0.0 of the React package. However, further analysis revealed that this was a false positive, and the code in question does not pose any actual threat. The withdrawal of this vulnerability ensures that applications using React are not exposed to any malicious behavior.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall react
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 →
Conclusion
The MAL-2024-2929 vulnerability reported in React was a false positive and has been withdrawn. React users can continue using the package without any security concerns. It is important to stay updated on the latest versions of React and its dependencies to ensure the security of your applications.
See every vulnerability recorded for react →
FAQ
React is a JavaScript library used for building user interfaces. It allows developers to create reusable UI components and efficiently update the UI when data changes.
The MAL-2024-2929 vulnerability was a false positive and does not have any actual impact. It has been withdrawn, ensuring that applications using React are not exposed to any malicious behavior.
Versions 35.0.0 and 1.0.0 of the React package were initially reported to contain malicious code. However, further analysis revealed that this was a false positive.
No, as the vulnerability has been withdrawn, there is no fix required. React users can continue using the package without any security concerns.
To ensure the security of your React application, it is recommended to regularly update to the latest versions of React and its dependencies. Stay informed about any reported vulnerabilities and follow best practices for secure coding.
Related vulnerabilities
Recent vulnerabilities recorded for react.