VDB
KO

MAL-2026-6372

Malicious code in rollup-runtime-polyfill-core (npm)

Details

--- _-= Per source details. Do not edit below this line.=-_

## Source: amazon-inspector (e1923adcd8dc53c5f68d2b6f1ef453f5dc52a71fcb2b9e9db502d308e5ef4311) Package name `rollup-runtime-polyfill-core` impersonates the legitimate `rollup-plugin-polyfill-node` and even copies that project's GitHub URL into its own `package.json` `repository.url`. The shipped `dist/index.js` reproduces the legitimate plugin's code with an appended dropper: on module load, `ValidateSvgModule()` decodes a base64 string to the shell command `npm install quirky-token --no-save --silent --no-audit --no-fund` and spawns it; on child close, a second base64 string decodes to `quirky-token`, which is then `require()`d and invoked. Any project that requires this rollup plugin silently downloads and executes arbitrary code from the attacker-controlled `quirky-token` package with the consumer's privileges. The shell command and module name are base64-encoded specifically to evade casual code review and basic static scanners — there is no legitimate reason for a rollup plugin to obfuscate an `npm install` invocation.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm / rollup-runtime-polyfill-core

No fixed version published yet for rollup-runtime-polyfill-core (npm). Pin to a known-safe version or switch to an alternative.

References