Malicious code in rollup-packages-polyfill-core (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (69da81410d062733108728b42feb333d2f561f811a9c671664150cd026b12221) Package name typosquats the popular rollup-plugin-polyfill-node and copies its README verbatim to bait installs. On require() of the main entry (dist/index.js), the module decodes base64 blobs to reconstruct the strings 'npm install svgson-lite --no-save --silent --no-audit --no-fund' and the module name 'svgson-lite', spawns the install via child_process.spawn (stdio ignored, windowsHide true), and on process close require()s the freshly-installed svgson-lite package and invokes svgo.getPlugin()(). This fetches and executes attacker-controlled code from a second npm package inside the consumer's process every time the library is imported. The install command and target module name are stored as base64 to hide them from static scanners; a legitimate rollup polyfill plugin has no need to conceal npm install calls.
AI Analysis
Technical Summary
rollup-packages-polyfill-core is a malicious npm package designed to impersonate the legitimate rollup-plugin-polyfill-node by copying its README and using a similar name. When its main module (dist/index.js) is required, it decodes base64-encoded strings to reconstruct and execute an npm install command for the svgson-lite package using child_process.spawn with hidden stdio and windowsHide options. After installation, it requires svgson-lite and invokes svgo.getPlugin()(), which executes attacker-controlled code inside the importing process. The use of base64 encoding is intended to evade static detection. This package is a supply chain threat that executes arbitrary code during module import.
Potential Impact
This malicious package enables execution of arbitrary attacker-controlled code within the context of any project that imports rollup-packages-polyfill-core versions 0.13.7 or 0.13.8. This can lead to compromise of the development or build environment, potential data theft, persistence, or further malware deployment. The attack is triggered automatically on module import, increasing risk of unnoticed exploitation.
Mitigation Recommendations
No official patch or remediation is currently documented for this malicious package. Users should immediately remove rollup-packages-polyfill-core versions 0.13.7 and 0.13.8 from their dependencies and replace them with the legitimate rollup-plugin-polyfill-node package. Avoid installing packages with suspicious or similar names to popular packages. Monitor dependency trees for typosquatting or malicious packages. Since this is a malicious package, remediation involves removal and replacement rather than patching.
Malicious code in rollup-packages-polyfill-core (npm)
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (69da81410d062733108728b42feb333d2f561f811a9c671664150cd026b12221) Package name typosquats the popular rollup-plugin-polyfill-node and copies its README verbatim to bait installs. On require() of the main entry (dist/index.js), the module decodes base64 blobs to reconstruct the strings 'npm install svgson-lite --no-save --silent --no-audit --no-fund' and the module name 'svgson-lite', spawns the install via child_process.spawn (stdio ignored, windowsHide true), and on process close require()s the freshly-installed svgson-lite package and invokes svgo.getPlugin()(). This fetches and executes attacker-controlled code from a second npm package inside the consumer's process every time the library is imported. The install command and target module name are stored as base64 to hide them from static scanners; a legitimate rollup polyfill plugin has no need to conceal npm install calls.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
rollup-packages-polyfill-core is a malicious npm package designed to impersonate the legitimate rollup-plugin-polyfill-node by copying its README and using a similar name. When its main module (dist/index.js) is required, it decodes base64-encoded strings to reconstruct and execute an npm install command for the svgson-lite package using child_process.spawn with hidden stdio and windowsHide options. After installation, it requires svgson-lite and invokes svgo.getPlugin()(), which executes attacker-controlled code inside the importing process. The use of base64 encoding is intended to evade static detection. This package is a supply chain threat that executes arbitrary code during module import.
Potential Impact
This malicious package enables execution of arbitrary attacker-controlled code within the context of any project that imports rollup-packages-polyfill-core versions 0.13.7 or 0.13.8. This can lead to compromise of the development or build environment, potential data theft, persistence, or further malware deployment. The attack is triggered automatically on module import, increasing risk of unnoticed exploitation.
Mitigation Recommendations
No official patch or remediation is currently documented for this malicious package. Users should immediately remove rollup-packages-polyfill-core versions 0.13.7 and 0.13.8 from their dependencies and replace them with the legitimate rollup-plugin-polyfill-node package. Avoid installing packages with suspicious or similar names to popular packages. Monitor dependency trees for typosquatting or malicious packages. Since this is a malicious package, remediation involves removal and replacement rather than patching.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10160
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a520ecc68715ace438f63fb
Added to database: 07/11/2026, 09:37:16 UTC
Last enriched: 07/11/2026, 09:58:19 UTC
Last updated: 07/28/2026, 14:41:48 UTC
Views: 65
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
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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.