Critical Malicious Code Vulnerability in basic-with-react-hooks Package

basic-with-react-hooks Updated 02 Oct 2025

Summary

03/06/2025
CRITICAL
No i
Critical
Not published

MAL-2025-4639: Malicious code in basic-with-react-hooks (npm). Affects basic-with-react-hooks versions >= 0.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 basic-with-react-hooks package is a JavaScript library designed for building React applications using hooks. It simplifies state management and side effects in functional components, making it a popular choice among developers. However, this package has been compromised, leading to significant security risks for any application utilizing it.

Vulnerability Detail

The vulnerability stems from the presence of malicious code within the basic-with-react-hooks package. This code can fully compromise any computer where the package is installed or running. It poses severe risks, including unauthorized access to sensitive information such as secrets and keys. The malicious code can persist even after the package is removed, as it may have granted full control of the system to an external entity.

How To Fix

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

npm uninstall basic-with-react-hooks

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

There are no effective workarounds for this vulnerability. The only recommended action is to remove the package entirely and secure your system.

Conclusion

The basic-with-react-hooks package has been compromised with malicious code, posing significant security risks to any system using it. Immediate removal of the package and rotation of sensitive information is essential to mitigate potential damage. Utilizing tools like Vulert can help monitor for such vulnerabilities in the future.

See every vulnerability recorded for basic-with-react-hooks →

Share this vulnerability

FAQ

You should remove the package immediately 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 any signup.

Failing to address this vulnerability can lead to unauthorized access to sensitive data, system compromise, and potential data breaches.

After removing the package, ensure that all secrets and keys are rotated. However, there is no guarantee that all malicious software has been removed.

It is highly recommended to avoid using the package altogether due to the severity of the compromise, even if an update is available.

How To Fix

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

npm uninstall basic-with-react-hooks

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