-= Per source details. Do not edit below this line.=-
The package's exported getPlugin/setPlugin functions, when invoked by a consumer, decode base64-obfuscated string constants (svgValidateKey, svgValidatePattern) at runtime to reconstruct the command npm install rollup-plugin-polyfill-helper --no-save --silent --no-audit --no-fund and the module name rollup-plugin-polyfill-helper. The command is spawned silently (flags suppress install output, audit, and fund messages) to install a package that is not declared in package.json dependencies, then require()s the freshly installed module and executes its getPlugin() export. Both the shell command and the required module identifier are stored only as base64 literals and reconstructed via atob, hiding them from static inspection of package.json and casual review. Whoever controls the rollup-plugin-polyfill-helper name on the npm registry can ship arbitrary code that will run on any machine that imports vite-config-svg and calls its advertised SVG-config API. The package's stated purpose is an SVG configuration helper; covertly installing and running a hidden, externally-controlled npm package is unrelated to that purpose and constitutes a dropper.
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.
{
"malicious-packages-origins": [
{
"source": "ghsa-malware",
"import_time": "2026-08-02T22:41:05.093473Z",
"sha256": "f2d8df53cab9692399da989640712189aa027dd12b62e4fe0de37d76aa8c116d",
"modified_time": "2026-07-31T11:08:12Z",
"id": "GHSA-qhvp-2j38-vcxv",
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "SEMVER"
}
]
},
{
"source": "amazon-inspector",
"import_time": "2026-08-04T22:30:04.930348501Z",
"sha256": "fee541a67169360e2d9ac3da7d19353031dd395c5e1bbe05bb4540ccc4837fa3",
"modified_time": "2026-08-04T21:47:22Z",
"id": "IN-MAL-2026-011204",
"versions": [
"1.1.7"
]
}
]
}[
{
"cweId": "CWE-506",
"name": "Embedded Malicious Code",
"description": "The product contains code that appears to be malicious in nature."
},
{
"cweId": "CWE-506",
"name": "Embedded Malicious Code",
"description": "The product contains code that appears to be malicious in nature."
}
]
{
"evidence_files": [
{
"tlsh": "0b2255911c9731228c72c7fe5d02841eeb8ee3273205619e7dbd52501f7a7a042aeeec",
"sha256": "2dc970bf1107403d1d71d42a81aade70804340e72321911692a55818d0c2f871",
"path": "index.js"
}
]
}
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/vite-config-svg/MAL-2026-11496.json"