Malicious Code Detected in react-state-optimizer-core Package - Critical Vulnerability

react-state-optimizer-core Updated 19 Mar 2026

Summary

18/03/2026
CRITICAL
No i
Critical
Not published

MAL-2026-1839: Malicious code in react-state-optimizer-core (npm). Affects react-state-optimizer-core versions 1.0.0 – 3.0.9. 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-state-optimizer-core package is a JavaScript library used in React applications to optimize state management. It aims to enhance performance by minimizing unnecessary re-renders and improving the efficiency of state updates. However, this package has been found to contain malicious code, posing significant risks to applications that utilize it.

Vulnerability Detail

The vulnerability stems from the inclusion of malicious code in specific versions of the react-state-optimizer-core package. This code can potentially compromise the security of applications by allowing unauthorized access or manipulation of application data. The affected versions include 1.0.0 through 1.0.9 and 3.0.3 through 3.0.9. Users of these versions are at risk of exploitation, which could lead to data breaches or other security incidents.

How To Fix

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

npm uninstall react-state-optimizer-core

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

If immediate updating is not feasible, consider removing the react-state-optimizer-core package from your project until a secure version is released. You can do this by running the command: 'npm uninstall react-state-optimizer-core'.

Conclusion

The react-state-optimizer-core package has been compromised with malicious code in several versions, posing a serious threat to applications using it. It is essential to update to a secure version or remove the package entirely until a patch is available. Utilize tools like Vulert to monitor your applications for vulnerabilities effectively.

See every vulnerability recorded for react-state-optimizer-core →

Share this vulnerability

FAQ

The affected versions include 1.0.0 through 1.0.9 and 3.0.3 through 3.0.9.

The malicious code can potentially allow unauthorized access to application data, leading to data breaches or manipulation.

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.

Yes, you can temporarily remove the package from your project using 'npm uninstall react-state-optimizer-core' until a secure version is available.

The vulnerability was identified by ReversingLabs, a cybersecurity firm specializing in threat detection.

How To Fix

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

npm uninstall react-state-optimizer-core

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