Critical Malicious Code Vulnerability in react-server-dom-turbopack-experimental Package
Summary
MAL-2025-6304: Malicious code in react-server-dom-turbopack-experimental (npm). Affects react-server-dom-turbopack-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-turbopack-experimental package is an experimental library in the npm ecosystem designed to enhance server-side rendering capabilities for React applications. It allows developers to build faster and more efficient web applications by optimizing the way components are rendered on the server. However, this package has been identified to contain malicious code that communicates with a domain associated with harmful activities, posing significant security risks to users and their applications.
Vulnerability Detail
The vulnerability stems from the presence of embedded malicious code within the react-server-dom-turbopack-experimental package, introduced in version 10.0.1. This code can compromise any computer that has the package installed, potentially allowing unauthorized access to sensitive information, including secrets and keys. The malicious activity is linked to a specific domain, and any system running this package should be considered fully compromised. Users are advised 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 react-server-dom-turbopack-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
Currently, there are no effective workarounds to mitigate the risks posed by this vulnerability other than removing the package entirely. It is essential to monitor your application for any signs of compromise and to rotate any secrets or keys that may have been exposed.
Conclusion
The react-server-dom-turbopack-experimental package contains a critical vulnerability due to embedded malicious code that can compromise systems. Immediate action is required to uninstall the package and secure any exposed sensitive information. Regular monitoring and using tools like Vulert can help maintain the security of your applications.
See every vulnerability recorded for react-server-dom-turbopack-experimental →
FAQ
It is an experimental npm package designed to improve server-side rendering for React applications.
The vulnerability can lead to unauthorized access to sensitive data and full compromise of the system where the package is installed.
You should immediately uninstall the package and rotate any sensitive information that may have been exposed.
No, there is currently no patched version available for this package. Complete removal is necessary.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just package-lock.json. You can check your application for this vulnerability using the Vulert playground at Vulert Scanner.