@longzy/react-native-polyfill (npm) · Malicious Code
Affects @longzy/react-native-polyfillSource GCVE Database
Malicious package : remove @longzy/react-native-polyfill and rotate any secrets on hosts that installed it.
Data as of 29 Jun 2026, 22:45 UTC
Malicious package
Published to npm · OSV MAL-2026-6597
What to do
Remove @longzy/react-native-polyfill 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 |
|---|---|---|
| npm@longzy/react-native-polyfill | 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 @longzy/react-native-polyfill is identified as purpose-built malware that exfiltrates sensitive host information and environment secrets during installation. It executes a postinstall hook that collects data such as hostname, username, platform, Node version, IP addresses, and the entire process environment variables, which may include tokens and keys. The stolen data is sent to an attacker-controlled Feishu/Lark webhook endpoint. The malware includes multiple obfuscation and anti-analysis techniques to evade detection and sandbox environments.