rollup-packages-node-polyfills (npm) · Malicious Code
Affects rollup-packages-node-polyfillsSource GCVE Database
Malicious package : remove rollup-packages-node-polyfills and rotate any secrets on hosts that installed it.
Data as of 21 Aug 2026, 16:28 UTC
Malicious package
Published to npm · OSV MAL-2026-12428
What to do
Remove rollup-packages-node-polyfills 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 |
|---|---|---|
| npmrollup-packages-node-polyfills | 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 'rollup-packages-node-polyfills' is a typosquatting malicious package that executes hidden code upon import. It decodes and runs a base64-encoded command to silently install another malicious package 'cors-update', then dynamically loads and executes code from that package. This behavior is unexpected and unrelated to its advertised functionality as a Rollup Node polyfills plugin. Systems with this package installed should be considered fully compromised, and all secrets and keys on those systems should be rotated immediately.
References
- npmjs.com/package/rollup-packages-node-polyfills/v/0.13.2 (opens in a new tab)
- npmjs.com/package/rollup-packages-node-polyfills/v/0.0.1 (opens in a new tab)
- npmjs.com/package/rollup-packages-node-polyfills/v/0.13.1 (opens in a new tab)
- npmjs.com/package/rollup-packages-node-polyfills/v/0.13.0 (opens in a new tab)
- github.com/advisories/GHSA-gp6f-mxh4-x3mh (opens in a new tab)