Malicious postinstall RCE in use-reducer-async default branch
CVE-2026-48159 is a software supply-chain compromise affecting the default branch of the use-reducer-async React library during a limited time window. Malicious commits introduced a post-installation execution path by adding install logic and wiring it into the package postinstall lifecycle, causing attacker-controlled JavaScript to be retrieved and executed when npm install was run against an affected source checkout. The install logic disabled TLS certificate verification, fetched a second-stage payload from an attacker-controlled HTTPS source that could be selected via environment variable, and evaluated the returned code with Node.js module loading capabilities available. The malicious logic was designed to avoid execution in CI and cloud or serverless environments, indicating deliberate targeting of developer workstations. The package was not published to the npm registry, but affected local clones, forks, and direct commit-based checkouts can still contain the malicious code even after its removal from the default branch history by force-push.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation results in remote code execution on the developer machine in the security context of the user running npm install. Because the second-stage payload was attacker-hosted and is not reconstructable, the full scope of post-exploitation behavior is unknown and should be treated as unrestricted compromise of anything accessible to the Node.js process under that user's permissions. This can include theft of developer credentials, source code access, tampering with local repositories, persistence, lateral movement through accessible services, and compromise of downstream environments reachable from the workstation.
If you can’t patch tonight, do this now.
Avoid running npm install against untrusted or historically affected source checkouts. Verify repository history and pin to known-good commits before dependency installation. Disable or tightly control execution of package lifecycle scripts where operationally feasible, especially on developer workstations. Use isolated development environments with minimal credential exposure, enforce least privilege for developer machines, and monitor for anomalous package-install behavior such as unexpected network retrieval and dynamic code evaluation during install steps. Repository consumers should also validate that forks and mirrors do not retain the malicious history.
Patch, then assume compromise.
Remove and replace any affected local clones, forks, or direct-SHA checkouts that may still contain the malicious commits. Rebuild affected workstations from a known-good state or otherwise perform full incident-response-grade eradication, because the second-stage payload cannot be reconstructed and compromise scope cannot be bounded reliably. Rotate all credentials, tokens, keys, and secrets that were accessible from the affected machine, review account and repository activity beginning from the start of the exposure window, and validate the integrity of code and artifacts that may have been handled on the compromised system. Ensure future checkouts use a known-clean revision outside the malicious commit window.
No public exploits tracked yet. Mallory keeps watching.
2 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.