Malicious Code Detected in react-refresh-update: A Critical Security Concern

react-refresh-update Updated 17 Mar 2026

Summary

16/03/2026
CRITICAL
No i
Critical
Not published

MAL-2026-1485: Malicious code in react-refresh-update (npm). Affected versions are not published. 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 Your last release was probably never penetration tested 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-refresh-update package is a tool used in the React ecosystem to facilitate hot reloading of components during development. It allows developers to see changes in real-time without losing the application state. However, this package has been found to contain malicious code that poses significant security risks to applications utilizing it.

Vulnerability Detail

The vulnerability stems from the presence of highly obfuscated code within the react-refresh-update package, which employs dynamic execution through the use of eval(). This is a strong indicator of malicious intent, as it allows for the execution of arbitrary code, potentially leading to data breaches, unauthorized access, or system compromise. The vulnerability is confirmed by YARA rule matches, indicating a serious threat to any application that includes this package.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall react-refresh-update

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 workaround, you can temporarily disable hot reloading in your development environment until a safe alternative is found. This can be done by modifying your development server configuration to not use the react-refresh-update package.

Conclusion

The discovery of malicious code in the react-refresh-update package highlights the importance of vigilance in managing dependencies within software projects. Developers are urged to remove this package and consider safer alternatives to protect their applications from potential threats.

See every vulnerability recorded for react-refresh-update →

Share this vulnerability

FAQ

react-refresh-update is a package used in React development for enabling hot reloading of components, allowing developers to see changes in real-time.

The risks include potential data breaches, unauthorized access to sensitive information, and the execution of arbitrary code that could compromise the entire application.

You can use Vulert, a tool that monitors and alerts for open-source vulnerabilities in your software. By analyzing your package-lock.json file, Vulert can provide real-time alerts for vulnerabilities.

No patch is available for the react-refresh-update package. The best course of action is to uninstall the package and seek alternatives.

You can use Vulert's playground to check if your application is affected by vulnerabilities without needing to sign up. This tool provides real-time monitoring and alerts.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall react-refresh-update

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