Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconPush malicious postinstall commits to repo
-
DeliveryVictim clones/forks affected checkout
-
ExploitDeveloper runs npm install
-
Installpostinstall executes src/install.js
-
C2Fetch remote payload over TLS-unverified HTTPS
-
ExecuteEvaluate attacker code as user
-
ImpactHarvest credentials, full workstation compromise
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V15 - Secure Coding and Architecture Code review, malicious code detection
|
| Exploitation Conditions | Exploitation requires (1) possession of an affected checkout - a local clone, fork, or direct-SHA/URL reference of react18-use containing the commit range starting 7b79148d1495a2505f9277da295a98cf176f4496 (the force-push removed it from the live default branch, so a fresh clone of the current HEAD is NOT affected), (2) the victim running |
| Impact | The input CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H, base 9.3) rates this as critical with full confidentiality, integrity, and availability loss, which is consistent with arbitrary remote code execution on the victim host. One caveat: the vector encodes UI:N, but real exploitation is not truly no-interaction - a developer must first obtain an affected checkout (clone/fork/direct-SHA) and then run |
| Exploit ScenarioDerived | A developer following a tutorial or dependency reference clones react18-use (or installs it via a git/direct-SHA URL pinned to the poisoned commit) and runs |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 10, 2026
Software supply-chain compromise of react18-use, a small React 19 use-hook shim maintained by dai-shi, in which malicious commits pushed to the GitHub default branch between 2026-05-19 01:07:01 and 15:20:43 UTC added a postinstall script (src/install.js) that runs attacker-controlled remote code on developer machines during npm install. The malicious commits were later removed by force-push and the package was never published to npm, but local clones, forks, and direct-SHA URLs still carry them, so any npm install against an affected checkout still executes the payload today. There is no public exploit identified at time of analysis and it is not on CISA KEV, but the embedded code itself constitutes working malware (CWE-506); anyone who ran npm install on a developer workstation on or after 2026-05-19 01:07:01 should assume full host compromise.
RemediationAI
No traditional versioned patch applies because the package was never on npm; the fix is that the malicious commits were removed from the default branch by force-push, so remediation is to eliminate poisoned checkouts and treat exposed machines as compromised. Delete and re-clone any local copy of react18-use so no working tree contains the commit range starting 7b79148d1495a2505f9277da295a98cf176f4496, and purge any fork or pinned direct-SHA/URL dependency referencing those commits; never run npm install against an old checkout. Because the payload disabled TLS verification and executed remote code, anyone who ran npm install on a developer machine on or after 2026-05-19 01:07:01 UTC should assume full host compromise: rotate every credential the machine could reach (SSH keys, cloud/CI tokens, npm and GitHub tokens, browser sessions, password-manager secrets), audit all account and repo activity since 2026-05-19 01:07:01 UTC, and reimage or forensically clean the workstation. As a general control, disable npm install scripts by default (npm config set ignore-scripts true, or use npm install --ignore-scripts) - noting the trade-off that some legitimate packages rely on postinstall builds and may need manual attention. See the advisory at https://github.com/dai-shi/react18-use/security/advisories/GHSA-32xh-vg5f-64fm.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The affected component is a Node.js/npm package distributed via GitHub (cpe:2.3:a:dai-shi:react18-use). The abuse vector is npm's lifecycle-scripts mechanism: an entry in the package's postinstall hook automatically executes src/install.js whenever a consumer installs dependencies. That script fetched a JavaScript second-stage payload from an attacker-controlled HTTPS endpoint (whose URL was overridable via an environment variable), deliberately disabled TLS certificate verification, and evaluated the response with eval/require-style dynamic execution so the remote code ran inside the Node process with require available and the invoking user's full privileges. Root cause is CWE-506 (Embedded Malicious Code) - this is not a memory-safety or logic bug but intentionally planted malware. The code included environment fingerprinting that skipped execution on CI and cloud/serverless runners, specifically to evade automated build sandboxes and hit interactive developer workstations where high-value credentials (SSH keys, cloud tokens, npm/GitHub tokens, browser sessions) live.
Know when React18 Use gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Payload is delivered over the network but requires the developer to obtain a poisoned checkout and run npm install, so UI:R; once triggered it runs as the user with full C/I/A loss, PR:N, no scope change.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
DescriptionCVE.org
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.
Articles & Coverage 1
Executive ViewAI
A critical supply chain vulnerability in react18-use, a small npm package, compromised developer workstations that installed this package during a 14-hour window in May 2026 through malicious postinstall scripts executing arbitrary code. Any developer on affected machines must assume complete host compromise with full access to source code repositories, development credentials, and build environments. This creates immediate risk of source code theft and potential downstream compromise of software supply chains through infiltrated build pipelines.
No vendor-released patch identified at time of analysis. Interim mitigations include: (1) Do not install or update react18-use; (2) Audit all node_modules directories to verify packages came from npm registry, not local git clones; (3) Implement npm lockfile integrity verification with hash validation; (4) Enforce strict version pinning in dependency management, eliminating installations from direct git SHAs; (5) Deploy EDR/XDR solutions on all developer workstations to detect postinstall script execution anomalies; (6) Audit system logs for unexpected process creation or network connections during npm install operations; (7) Implement code review and commit signing requirements with verification that committers are authorized personnel.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
EUVD-2026-55848
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB