Code execution via malicious postinstall payload
Published Aug 10, 2026 · Updated Aug 10, 2026
Supply-chain code execution in postinstall in Daishi Kato use-context-selector affected commits allows remote attackers to run JavaScript. src/install.js was referenced by package.json, disabled TLS verification, fetched attacker-controlled JavaScript over HTTPS, and evaluated it with require available. Execution requires npm install from an affected checkout on a developer workstation, excludes CI and cloud environments, and runs with the installing user's permissions.
Summary
What happened
Supply-chain code execution in postinstall in Daishi Kato use-context-selector affected commits allows remote attackers to run JavaScript. src/install.js was referenced by package.json, disabled TLS verification, fetched attacker-controlled JavaScript over HTTPS, and evaluated it with require available. Execution requires npm install from an affected checkout on a developer workstation, excludes CI and cloud environments, and runs with the installing user's permissions.
The record
- CVE
- CVE-2026-48158
- Published
- Aug 10, 2026
- Updated
- Aug 10, 2026
- Vendor
- Daishi Kato
- Product
- use-context-selector
- Classifications
- CWE-506, CAPEC-442, CAPEC-636, CAPEC-448, T1195.002, T1059.007
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- May 18, 2026Exploitation reportedCompromised maintainer commits
- Aug 10, 2026CVE publishedPublication date reported by the CVE source.
- Aug 10, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=>= 9d8481a513b7b0d1c0941b220c69b25de748641b, <= 6f2dae054ca014068bdbbb4db96006424d674124
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Reported exploitation
- Compromised maintainer commitsreported exploitation
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo