Malicious Code Detected in react-server-dom-webpack-experimental Package
Summary
MAL-2025-6305: Malicious code in react-server-dom-webpack-experimental (npm). Affects react-server-dom-webpack-experimental versions >= 10.0.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-server-dom-webpack-experimental package is part of the React ecosystem, designed to facilitate server-side rendering and improve the performance of React applications. It allows developers to build applications that can render on the server and send HTML to the client, enhancing the user experience. However, this package has been identified as containing malicious code that communicates with a domain associated with harmful activities, posing significant security risks to users.
Vulnerability Detail
The vulnerability originates from the react-server-dom-webpack-experimental package, which has been compromised to include malicious code. This code can lead to unauthorized access to sensitive information, as it communicates with a domain linked to malicious activities. Any system running this package is considered fully compromised, and all secrets and keys stored on that system should be rotated immediately. The malicious nature of this code falls under the category of embedded malicious code (CWE-506), which is particularly dangerous as it can operate without the user's knowledge.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall react-server-dom-webpack-experimental
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, avoid using the react-server-dom-webpack-experimental package until a secure version is released. Monitor your application for any signs of compromise and consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The react-server-dom-webpack-experimental package has been identified as containing malicious code that poses significant security risks. Users are advised to uninstall the package immediately and monitor their systems for any signs of compromise. Utilizing tools like Vulert can help in identifying and mitigating such vulnerabilities in the future.
See every vulnerability recorded for react-server-dom-webpack-experimental →
FAQ
Immediately uninstall the react-server-dom-webpack-experimental package and rotate any sensitive information stored on the affected system.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.
Compromised packages can lead to unauthorized access, data breaches, and potential control over your system by malicious actors.
Currently, there is no patched version of the react-server-dom-webpack-experimental package. It is recommended to uninstall it until a secure version is released.
Regularly audit your dependencies, use tools like Vulert for monitoring, and ensure you only install packages from trusted sources.