CVE-2026-48161
react18-use was vulnerable to malicious code execution via compromised commits
Check your servers for CVE-2026-48161
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-48161 affects react18-use, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
react18-use is a React 19 use hook shim. Between 2026-05-19 01:07:01 and 2026-05-19 15:20:43, the default branch contained malicious commits 7b79148d1495a2505f9277da295a98cf176f4496 through 7b79148d1495a2505f9277da295a98cf176f4496 that executed remote attacker-controlled code on developer machines during `npm install`. The commits were removed by force-push, but local clones, forks, and direct-SHA URLs may still contain them, and `npm install` against an affected checkout will still execute the code today. The package was not published to npm. `src/install.js` was added and wired into the `postinstall` script. It fetched a JavaScript payload from an attacker-controlled HTTPS endpoint (configurable via an environment variable), disabled TLS verification, and evaluated the response as code with `require` available. Execution was deliberately skipped on CI and cloud/serverless environments, targeting developer workstations. The second-stage payload was attacker-hosted and cannot be reconstructed. Assume full compromise of anything reachable from a Node process with the user's permissions. Those who ran `npm install` against an affected checkout on a developer machine on or after 2026-05-19 01:07:01 should treat the machine as compromised, rotate every credential the machine could reach, audit account activity since 2026-05-19 01:07:01, and clean local clones.
Severity (CVSS)
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Attack requirements
- none: an attack works without special conditions on the target
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Impact on the vulnerable system
- confidentiality high, integrity high, availability high: what an attacker can read, change or stop in the vulnerable component
- Impact on other systems
- confidentiality none, integrity none, availability none: what an attacker can read, change or stop beyond it
Exploitation
EPSS 0.42%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 38.1% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 11 Aug 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-506 Embedded Malicious Code
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| react18-use |
affected >= 7b79148d1495a2505f9277da295a98cf176f4496, <=…
|
Is my server affected?
Find the installed version of react18-use and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i react18-use
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-48161 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-48161RHEL, Rocky, Alma, Fedora
rpm -q react18-use
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-48161Alpine
apk list --installed | grep -i react18-useWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-48161
trivy image --scanners vuln IMAGE | grep CVE-2026-48161
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
Source: the record CVE-2026-48161 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse