PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-48158 dai-shi CVE debrief

A critical vulnerability was discovered in the use-context-selector package, a React useContextSelector hook in userland. Between May 18, 2026, and May 19, 2026, malicious commits were added to the default branch, which executed remote attacker-controlled code on developer machines during `npm install`. The commits were removed, but local clones, forks, and direct-SHA URLs may still contain them. Those who ran `npm install` against an affected checkout on a developer machine should treat the machine as compromised and rotate credentials.

Vendor
dai-shi
Product
use-context-selector
CVSS
CRITICAL 9.3
CISA KEV
Not listed in stored evidence
Original CVE published
2026-08-10
Original CVE updated
2026-09-09
Advisory published
2026-08-10
Advisory updated
2026-09-09

Who should care

Developers who ran `npm install` against an affected checkout on a developer machine should treat the machine as compromised and take immediate action to rotate credentials and audit account activity.

Why it matters

This critical vulnerability requires immediate attention from developers who may have installed the affected package. The malicious code could lead to full compromise of the machine, credential theft, and lateral movement.

  • Potential full compromise of machines reachable from a Node process with the user's permissions
  • Credential theft and unauthorized access to sensitive data
  • Lateral movement and further exploitation of the compromised machine

Technical summary

The use-context-selector package, a React useContextSelector hook in userland, was found to contain malicious commits that executed remote attacker-controlled code on developer machines during `npm install`. The vulnerability was introduced between May 18, 2026, and May 19, 2026, and was removed by force-push. However, local clones, forks, and direct-SHA URLs may still contain the malicious code. Those who ran `npm install` against an affected checkout on a developer machine should treat the machine as compromised and rotate credentials. The malicious code could lead to full compromise of the machine, credential theft, and lateral movement. The commits added a JavaScript payload that was fetched from an attack

Defensive priority

High

Recommended defensive actions

  • Immediately rotate all credentials that could be accessed by the potentially compromised machine
  • Audit account activity since May 18, 2026, for any suspicious behavior
  • Clean local clones of the affected repository
  • Verify and update the package to a secure version
  • Review compensating controls for exposed systems while remediation is scheduled and verified
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review
  • Track exceptions, retest remediated assets, and close the item only after evidence is documented

Evidence notes

The vulnerability was introduced through malicious commits added to the default branch of the use-context-selector package. These commits 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.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-48158 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-48158

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-48158 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-48158

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.