onesignal-hooks (npm) · Malicious Code
Affects onesignal-hooksSource GCVE Database
Malicious package : remove onesignal-hooks and rotate any secrets on hosts that installed it.
Data as of 17 Nov 2026, 22:52 UTC
Malicious package
Published to npm · OSV MAL-2026-6170
What to do
Remove onesignal-hooks from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmonesignal-hooks | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The npm package 'onesignal-hooks' is a malicious React Native component involved in a coordinated campaign of 37 packages. It exfiltrates app install and conversion data to attacker-controlled domains and performs cloaked remote content rendering to evade detection. The package name is deceptive and the malicious logic is obfuscated. Both attacker domains are currently unregistered, posing a risk of takeover. Any system with this package installed should be considered fully compromised.