Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

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

0
Critical
Published: 06/24/2026 (06/24/2026, 03:58:02 UTC)
Source: GCVE Database
Product: rollup-runtime-polyfill-core

Description

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (90dc8536f81ef2ffbd391877bbe1eefbefc900081ef6eaa9848548177c233167) Package name mimics the legitimate `rollup-plugin-polyfill-node` and copies its source (the repository field in package.json points to FredKSchott/rollup-plugin-polyfill-node). Appended to dist/index.js is a top-level dropper that runs on every `require()`/`import` of the package. The dropper decodes base64-encoded strings to assemble the command `npm install driftpin --no-save --silent --no-audit --no-fund`, spawns it with `stdio: 'ignore'` and `windowsHide: true` to suppress output, then on process close performs `require('driftpin')` and invokes `getPlugin()()`. The target module name `driftpin` is also stored as a base64 literal (`ZHJpZnRwaW4=`). `driftpin` is not declared in this package's dependencies and is not shipped in the tarball — its content is attacker-controlled and unpinned, so arbitrary code from a separate npm package executes inside the installer's Node process whenever this module is loaded. The combination of name impersonation of a legitimate polyfill, base64 obfuscation of the command and target name, hidden execution flags, and out-of-tree installation of an unrelated package is an unambiguous install/import-time RCE dropper.

Affected software

npmghsa
rollup-runtime-polyfill-core
Affected versions
=0.13.7=0.13.9=0.14.0=0.13.8

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/11/2026, 09:57:59 UTC

Technical Analysis

The 'rollup-runtime-polyfill-core' npm package mimics the legitimate 'rollup-plugin-polyfill-node' by copying its source and using a similar repository field. It appends a top-level dropper in its main file that runs on every require/import. This dropper decodes base64 strings to construct and silently execute the command 'npm install driftpin --no-save --silent --no-audit --no-fund', then requires the 'driftpin' module and invokes a function from it. The 'driftpin' package is not declared as a dependency and is attacker-controlled, allowing arbitrary code execution within the installer's Node.js process. The use of base64 obfuscation, hidden execution flags, and out-of-tree installation clearly indicates an install/import-time remote code execution (RCE) backdoor.

Potential Impact

Loading or importing the affected versions of 'rollup-runtime-polyfill-core' results in execution of attacker-controlled code via the unpinned 'driftpin' package. This leads to remote code execution in the context of the Node.js process running the package, potentially compromising the host system or build environment.

Mitigation Recommendations

No official patch or remediation is currently documented. Users should avoid installing or using the 'rollup-runtime-polyfill-core' package in any of the affected versions (=0.13.7, =0.13.8, =0.13.9, =0.14.0). Verify package authenticity before installation and prefer the legitimate 'rollup-plugin-polyfill-node' package. Monitor for updates from the package repository or vendor advisory for any official fixes or guidance.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-6372
Osv Schema Version
1.7.4
Aliases
[]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a520ecb68715ace438f62e4

Added to database: 07/11/2026, 09:37:15 UTC

Last enriched: 07/11/2026, 09:57:59 UTC

Last updated: 07/30/2026, 18:37:16 UTC

Views: 20

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses