MAL-2026-10160 Malicious code in rollup-packages-polyfill-core (npm)
- Published
- Updated
- Exploit status
- No public exploit known
Description
-= Per source details. Do not edit below this line.=-
Source: amazon-inspector (2dfdfbd2fc737f9d78ec40aac8b7020866cb0ef0e7e14b2d95aa174ea0ec5818)
On require of the main entry dist/index.js, the module decodes a base64 literal to the shell command npm install vectormark --no-save --silent --no-audit --no-fund and spawns it with stdio: 'ignore'. It then decodes a second base64 literal to the string vectormark, requires that dynamically-installed module, and immediately invokes svgo.getPlugin()(), executing arbitrary code from the second-stage package. The install target is unpinned and installed with --no-save, so the dropped code is not recorded in the consumer's lockfile. Both the shell command and the target module name are stored as base64 strings (Buffer.from(..., 'base64').toString('utf8')) to hide them from static review. The package name rollup-packages-polyfill-core typosquats the legitimate rollup-plugin-polyfill-node, whose repository it also declares.
Source: ghsa-malware (9b4d6b267c6acf02bfba1366c8d1fe3e3285f2fd492a34d2c499e33d7d2efcff)
Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
Upgrade path
1 package: 0 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm rollup-packages-polyfill-core(npm) | = 0.0.0; = 0.5.0; = 0.12.3; = 0.13.0 +11 more | No fix listed | No fix yet |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm rollup-packages-polyfill-core(npm) | All versions | No fix listed |
| npm rollup-packages-polyfill-core(npm) | = 0.13.8 | No fix listed |
| npm rollup-packages-polyfill-core(npm) | = 0.13.7 | No fix listed |
| npm rollup-packages-polyfill-core(npm) | = 0.14.1 | No fix listed |
| npm rollup-packages-polyfill-core(npm) | = 0.13.9 | No fix listed |
| npm rollup-packages-polyfill-core(npm) | = 0.14.0 | No fix listed |
| npm rollup-packages-polyfill-core(npm) | = 0.13.5 | No fix listed |
| npm rollup-packages-polyfill-core(npm) | = 0.13.6 | No fix listed |
| npm rollup-packages-polyfill-core(npm) | = 0.13.4 | No fix listed |
| npm rollup-packages-polyfill-core(npm) | = 0.0.0 | No fix listed |
| npm rollup-packages-polyfill-core(npm) | = 0.5.0 | No fix listed |
| npm rollup-packages-polyfill-core(npm) | = 0.12.3 | No fix listed |
| npm rollup-packages-polyfill-core(npm) | = 0.13.0 | No fix listed |
| npm rollup-packages-polyfill-core(npm) | = 0.13.2 | No fix listed |
| npm rollup-packages-polyfill-core(npm) | = 0.13.3 | No fix listed |
References
- www.npmjs.com product
- www.npmjs.com product
- www.npmjs.com product
- www.npmjs.com product
- www.npmjs.com product
- github.com vendor-advisory
- www.npmjs.com product
- www.npmjs.com product
- www.npmjs.com product
- research.jfrog.com
- github.com vendor-advisory
- security.snyk.io vendor-advisory