{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-48161","published":"2026-08-10T23:16:51.343000Z","last_modified":"2026-10-23T19:10:00.167000Z","status":"Deferred","cvss":{"version":"4.0","score":9.3,"severity":"CRITICAL","vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","source":"security-advisories@github.com","primary":false},"auth":false,"cwes":["CWE-506"],"cpes":[],"cpes_truncated":false,"vendors":["dai-shi"],"products":["dai-shi/react18-use"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"total"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"critical","priority_score":71,"links":{"html_es":"/es/cve/CVE-2026-48161/","html_en":"/en/cve/CVE-2026-48161/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-48161","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-48161"},"untrusted":{"vendor_name":"dai-shi","product_name":"react18-use","desc_en":"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.","affected":[{"untrusted_vendor":"dai-shi","untrusted_product":"react18-use","versions":[]}],"references":[{"url":"https://github.com/dai-shi/react18-use/security/advisories/GHSA-32xh-vg5f-64fm","tags":[]}]}}