CVE-2026-48161
9.3dai-shi · react18-use
The react18-use library contained malicious code in a specific commit that executes remote attacker-controlled payloads on developer machines during the npm install process.
Executive summary
A supply chain compromise in the react18-use repository allowed for the execution of malicious code on developer workstations, necessitating a full security audit of affected machines.
Vulnerability
This is an embedded malicious code vulnerability (CWE-506). A specific commit introduced a postinstall script that fetches and executes remote JavaScript payloads, effectively creating a backdoor on the developer workstation.
Business impact
This vulnerability represents a significant supply chain risk. Developers who ran npm install against the affected commit may have had their machines fully compromised, leading to the theft of environment variables, SSH keys, cloud credentials, and source code. The potential for long-term persistence and lateral movement within corporate networks is extremely high, justifying the 9.3 CVSS score.
Remediation
Immediate Action: Update to the latest version of react18-use and remove all local clones or forks that contain the malicious commit.
Proactive Monitoring: Audit all developer machines that ran the affected code for suspicious outbound network connections, new processes, or unauthorized changes to local configuration files.
Compensating Controls: Enforce the use of lockfiles and integrity checks for all dependencies, and consider using a private registry to vet packages before they are available for developer use.
Exploitation status
Public Exploit Available: Unknown
Analyst recommendation
If any developer environment was exposed to the affected commit, assume the machine is compromised. Immediately rotate all credentials that the machine could access, including API keys, cloud tokens, and service account passwords, and perform a thorough forensic investigation of affected developer workstations.