Malicious code in rollup-packages-node-polyfills (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (dd41e8f4e3846a790a96f518bbdcfe70be2839531c5ea5485924e7fd25603399) The package is a typosquat of `rollup-plugin-polyfill-node`. On `require()` of the main entry (`dist/index.js`), a base64-encoded command `npm install cors-update --no-save --silent --no-audit --no-fund` is decoded and passed to `child_process.spawn` with `stdio:'ignore'` and `windowsHide:true`. When the install child exits, the code then base64-decodes the module name `cors-update`, dynamically `require`s it, and invokes `.getPlugin()()`, executing whatever code that separately-published package ships. The command string and the target module name are both stored as base64 literals to evade plain-text scanners. The package's advertised purpose (a Rollup Node polyfills plugin) does not require installing or executing any other npm package at import time.
Malicious code in rollup-packages-node-polyfills (npm)
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (dd41e8f4e3846a790a96f518bbdcfe70be2839531c5ea5485924e7fd25603399) The package is a typosquat of `rollup-plugin-polyfill-node`. On `require()` of the main entry (`dist/index.js`), a base64-encoded command `npm install cors-update --no-save --silent --no-audit --no-fund` is decoded and passed to `child_process.spawn` with `stdio:'ignore'` and `windowsHide:true`. When the install child exits, the code then base64-decodes the module name `cors-update`, dynamically `require`s it, and invokes `.getPlugin()()`, executing whatever code that separately-published package ships. The command string and the target module name are both stored as base64 literals to evade plain-text scanners. The package's advertised purpose (a Rollup Node polyfills plugin) does not require installing or executing any other npm package at import time.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-12428
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a735741bf8831d539156142
Added to database: 08/05/2026, 15:31:13 UTC
Last updated: 08/05/2026, 15:31:13 UTC
Views: 1
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.