Malicious Code Execution in React 19 Shim Affects Developers
CVE-2026-48161

9.3CRITICAL

Key Information:

Vendor

Dai-shi

Vendor
CVE Published:
10 August 2026

What is CVE-2026-48161?

A security issue was identified in the React 19 hook shim 'react18-use', where malicious commits were introduced to the default branch between May 19, 2026. These commits included code capable of executing arbitrary commands on developer machines running 'npm install'. Specifically, the compromised script fetched attacker-controlled JavaScript payloads, disabled TLS verification, and evaluated code with 'require' access, thus allowing full control over the machine's Node process. While the malicious commits were removed after a force-push, any affected local clones or forks may still harbor the malicious code. It is advised that any developers who executed 'npm install' against these affected checkouts on or after the specified date consider their machines compromised, rotate credentials, audit account activities, and clean local clones to safeguard against potential intrusions.

Affected Version(s)

react18-use >= 7b79148d1495a2505f9277da295a98cf176f4496, <= 7b79148d1495a2505f9277da295a98cf176f4496

References

CVSS V4

Score:
9.3
Severity:
CRITICAL
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
None

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.