External risk intelligence

react18-use Malicious Commits Execute Remote Code on Developer Machines

CVE advisorySeverity: CRITICAL (CVSS 9.3)

CVE-2026-48161

This vulnerability affects developer workstations during the build and dependency installation process. It is a local execution risk that does not involve public-facing services, network listeners, or internet-accessible endpoints in a deployed production environment.

Halo Surface Signal: 1 out of 5 — much less likely to be public-facing.

External exposure likelihood

Horizon Alert

Summary of the vulnerability and why it matters

A recent security advisory details a malicious code injection that occurred within the `react18-use` project's default branch. This issue could have allowed remote attackers to execute code on developer machines during the `npm install` process. While the malicious commits were removed and the package was not published to npm, any local copies or forks of the affected code could still pose a risk to developer workstations, potentially leading to a full compromise of the machine's accessible resources.

  • Malicious code execution during software setup.
  • Developer workstations may be compromised.
  • Confirm relevance and assess exposure.

Attack Path

How an attacker could exploit the issue

An attacker could gain control of a developer's machine by tricking them into installing a compromised version of a package. This would involve a malicious commit being present in the project's history. When a developer installs dependencies using `npm install` from an affected checkout, malicious code executes, allowing the attacker to take over the machine.

  • Attacker must manipulate project commits.
  • Developers run `npm install` on compromised code.
  • Full compromise of the developer machine.

Live Threat

Current exploitation, exposure, and threat context

Malicious code could execute on developer machines during dependency installation when using an affected local clone or direct SHA URL. This could lead to a full compromise of anything reachable by the Node.js process with the user's permissions.

  • Developer machine code execution.
  • Malicious code executed via `npm install`.
  • Potential full compromise of developer workstation.

Operational Fix

Recommended remediation, mitigation, and detection steps

This vulnerability primarily impacts developer workstations during the `npm install` process. Teams responsible for developer tooling and environments, or those managing source code repositories and build pipelines, should prioritize identifying affected local clones or forks. The immediate practical step is to confirm the presence of malicious commits on developer machines, assess the potential exposure of credentials and sensitive data accessed from those machines, and initiate remediation by cleaning affected local environments.

  • Developer tooling and platform teams own the issue.
  • Verify developer workstation `npm install` history.
  • Remediate compromised developer machines and credentials.

Supplementary metadata

Validate whether this threat affects your internet-facing exposure.

Halo Threat Intelligence helps prioritize remediation with Halo Surface Signal and H/A/L/O context. Start exposure validation with a free external attack surface trial.

Frequently asked questions

What is react18-use?

react18-use is a library designed as a shim to provide the React 19 'use' hook functionality in projects using older versions of React. It serves as a bridge for developers transitioning between React versions, allowing them to utilize newer state-handling patterns while working within existing library ecosystems.

How does CVE-2026-48161 work?

This vulnerability involves malicious code injection categorized as Embedded Malicious Code (CWE-506). A hidden script was added to the package's installation process, which triggers when a developer runs commands to set up dependencies. It forces the machine to fetch and execute unknown remote instructions, effectively granting an attacker the same permissions as the user running the installation.

Do I need to worry if my code runs in the cloud?

No. The malicious code was specifically designed to skip execution on CI, serverless, and cloud-hosted environments. The trigger path is strictly limited to local developer workstations where a user runs an 'npm install' command within an affected repository clone or fork.

Is my production service at risk from CVE-2026-48161?

Halo Surface Signal indicates this risk is 'Very unlikely' for production services. Because the threat targets the local development workstation setup process rather than public-facing services or network listeners, it does not typically present an internet-accessible entry point for a deployed application.

What are the first steps if I used this code?

If you ran the installation process on a developer machine, assume the local environment is compromised. Immediately rotate all credentials the machine could access, such as API keys or SSH tokens. Audit your account activity for suspicious actions since the potential incident date and delete all local clones or forks of the affected project.

References