Malicious Code Detected in react-server-dom-webpack-experimental Package

Summary

25/07/2025
CRITICAL
No i
Critical
Not published

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 ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 →

Share this vulnerability

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.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback