mal-2026-10160
Vulnerability from ossf_malicious_packages
-= 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.
- CWE-506 - The product contains code that appears to be malicious in nature.
- CWE-506 - The product contains code that appears to be malicious in nature.
- CWE-506 - The product contains code that appears to be malicious in nature.
- CWE-506 - The product contains code that appears to be malicious in nature.
- CWE-506 - The product contains code that appears to be malicious in nature.
- CWE-506 - The product contains code that appears to be malicious in nature.
{
"affected": [
{
"database_specific": {
"cwes": [
{
"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"
}
],
"indicators": {
"evidence_files": [
{
"path": "dist/index.js",
"sha256": "d436a1392d9a78b6792b39df873ff6dac785557eb8d306adc2089ed3501aab0a",
"tlsh": "f981552614f679551373b2ec5587ec71397b9393338ccb507e2c83709fa20289a72ae5"
}
],
"package_integrity": [
{
"filename": "rollup-packages-polyfill-core-0.13.8.tgz",
"hashes": {
"sha1": "7ce89074c953a6d60b4068615c72fbfc857b623d",
"sha512_sri": "sha512-gU3kBACcGmOHHWWqNUuLzGwItIUW92jOXzyMgyaJDxmK3gIuGYvn7wspEkvybXcJavFpGwgs1ctF3lQ2uwds0w=="
}
}
]
}
},
"package": {
"ecosystem": "npm",
"name": "rollup-packages-polyfill-core"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "SEMVER"
}
],
"versions": [
"0.13.8",
"0.13.7",
"0.14.1",
"0.13.9",
"0.14.0"
]
}
],
"aliases": [
"GHSA-vw6c-rv4h-v5pw"
],
"credits": [
{
"contact": [
"inspector-research@amazon.com"
],
"name": "Amazon Inspector",
"type": "FINDER"
}
],
"database_specific": {
"malicious-packages-origins": [
{
"id": "IN-MAL-2026-009674",
"import_time": "2026-07-10T17:10:16.43384206Z",
"modified_time": "2026-07-10T16:57:07Z",
"sha256": "69da81410d062733108728b42feb333d2f561f811a9c671664150cd026b12221",
"source": "amazon-inspector",
"versions": [
"0.13.8"
]
},
{
"id": "IN-MAL-2026-009671",
"import_time": "2026-07-10T17:10:16.305545446Z",
"modified_time": "2026-07-10T16:56:40Z",
"sha256": "96f2a7710da85018d31f24bd4bfc5d10b25b439bc37b81eca966f761fab0c2e1",
"source": "amazon-inspector",
"versions": [
"0.13.7"
]
},
{
"id": "IN-MAL-2026-010882",
"import_time": "2026-07-28T14:19:57.30513996Z",
"modified_time": "2026-07-28T13:31:16Z",
"sha256": "f89a5205cfb702df5a1481b6a3eadb64da36c695b13b42686a87b0f17035a46d",
"source": "amazon-inspector",
"versions": [
"0.14.1"
]
},
{
"id": "IN-MAL-2026-014921",
"import_time": "2026-08-05T14:19:43.154421351Z",
"modified_time": "2026-08-05T13:11:56Z",
"sha256": "2dfdfbd2fc737f9d78ec40aac8b7020866cb0ef0e7e14b2d95aa174ea0ec5818",
"source": "amazon-inspector",
"versions": [
"0.13.9"
]
},
{
"id": "IN-MAL-2026-014918",
"import_time": "2026-08-05T14:19:42.885503404Z",
"modified_time": "2026-08-05T13:11:33Z",
"sha256": "32e7813eae65ec25803d2163fbfcf3c05901e7197025d5ebc54a688d19e726cd",
"source": "amazon-inspector",
"versions": [
"0.14.0"
]
},
{
"id": "GHSA-vw6c-rv4h-v5pw",
"import_time": "2026-08-21T12:26:03.500137684Z",
"modified_time": "2026-08-21T12:23:27Z",
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "SEMVER"
}
],
"sha256": "9b4d6b267c6acf02bfba1366c8d1fe3e3285f2fd492a34d2c499e33d7d2efcff",
"source": "ghsa-malware"
}
]
},
"details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (2dfdfbd2fc737f9d78ec40aac8b7020866cb0ef0e7e14b2d95aa174ea0ec5818)\nOn 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: \u0027ignore\u0027`. 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\u0027s lockfile. Both the shell command and the target module name are stored as base64 strings (`Buffer.from(..., \u0027base64\u0027).toString(\u0027utf8\u0027)`) 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.\n\n## Source: ghsa-malware (9b4d6b267c6acf02bfba1366c8d1fe3e3285f2fd492a34d2c499e33d7d2efcff)\nAny 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.\n",
"id": "MAL-2026-10160",
"modified": "2026-08-21T12:28:12.697805105Z",
"published": "2026-07-10T16:56:40Z",
"references": [
{
"type": "PACKAGE",
"url": "https://www.npmjs.com/package/rollup-packages-polyfill-core/v/0.13.8"
},
{
"type": "PACKAGE",
"url": "https://www.npmjs.com/package/rollup-packages-polyfill-core/v/0.13.7"
},
{
"type": "PACKAGE",
"url": "https://www.npmjs.com/package/rollup-packages-polyfill-core/v/0.14.1"
},
{
"type": "PACKAGE",
"url": "https://www.npmjs.com/package/rollup-packages-polyfill-core/v/0.13.9"
},
{
"type": "PACKAGE",
"url": "https://www.npmjs.com/package/rollup-packages-polyfill-core/v/0.14.0"
},
{
"type": "ADVISORY",
"url": "https://github.com/advisories/GHSA-vw6c-rv4h-v5pw"
}
],
"schema_version": "1.7.4",
"summary": "Malicious code in rollup-packages-polyfill-core (npm)"
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.