Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-48161: CWE-506: Embedded Malicious Code in dai-shi react18-use

0
Critical
VulnerabilityCVE-2026-48161cvecve-2026-48161cwe-506
Published: 08/10/2026 (08/10/2026, 22:27:35 UTC)
Source: CVE Database V5
Vendor/Project: dai-shi
Product: react18-use

Description

The react18-use package contained malicious commits on its default branch for a brief period on 2026-05-19. These commits introduced a postinstall script that fetched and executed attacker-controlled code on developer machines during npm install, bypassing TLS verification and avoiding execution in CI/cloud environments. The malicious commits were removed by force-push, but local clones and forks may still contain them. The package was not published to npm, but affected checkouts remain dangerous. Users who ran npm install on an affected checkout should consider their machines compromised and take remediation steps.

CVSS v4.0

Score 9.3critical

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/10/2026, 22:56:08 UTC

Technical Analysis

CVE-2026-48161 describes a supply chain attack in the react18-use package where malicious commits were introduced on the default branch between 2026-05-19 01:07:01 and 15:20:43. These commits added a postinstall script (src/install.js) that fetched a JavaScript payload from an attacker-controlled HTTPS endpoint with TLS verification disabled and executed it with require available. The payload was designed to run only on developer workstations, skipping CI and cloud environments. The malicious commits were removed by force-push, but local clones and forks may still contain them. The second-stage payload is unavailable, but full compromise of the affected developer machine is assumed. The package was never published to npm, limiting exposure to those who cloned the repository directly or used direct SHA URLs.

Potential Impact

The vulnerability allows remote attacker-controlled code execution on developer machines during npm install of an affected checkout. This can lead to full compromise of the developer environment with the permissions of the user running the Node process. Credentials accessible from the compromised machine may be stolen or misused. The attack specifically targets developer workstations, avoiding CI and cloud environments, thus potentially enabling further supply chain or internal network compromise.

Mitigation Recommendations

The malicious commits were removed by force-push, but no official patch or remediation is available since the package was not published to npm. Users who ran npm install on an affected checkout on or after 2026-05-19 01:07:01 should treat their machines as compromised. Recommended actions include rotating all credentials accessible from the machine, auditing account activity since the compromise date, and cleaning or recloning local repositories to remove the malicious commits. Avoid using direct SHA URLs or local clones that may contain the malicious commits.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-05-20T23:12:43.032Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a7a53c0bf8831d539aba087

Added to database: 08/10/2026, 22:42:08 UTC

Last enriched: 08/10/2026, 22:56:08 UTC

Last updated: 08/10/2026, 23:23:19 UTC

Views: 6

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses