Critical Malicious Code Vulnerability in rollup-plugin-polyfill-build Package
Summary
MAL-2026-1967: Malicious code in rollup-plugin-polyfill-build (npm). Affected versions are not published. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The rollup-plugin-polyfill-build package is a tool used in JavaScript development to create polyfills for various environments. It helps developers ensure compatibility across different browsers and platforms by automatically including necessary polyfills. However, this package has been compromised, leading to severe security risks for any system utilizing it.
Vulnerability Detail
The vulnerability stems from the presence of malicious code embedded within the rollup-plugin-polyfill-build package. This code can fully compromise any computer that has the package installed, allowing unauthorized access to sensitive information such as secrets and keys. The malicious nature of the code is classified under CWE-506, indicating that it contains code appearing to be harmful. Users are advised to treat any system running this package as fully compromised, as the removal of the package may not eliminate all traces of the malicious software.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall rollup-plugin-polyfill-build
If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
As a workaround, if you need to maintain functionality while transitioning away from rollup-plugin-polyfill-build, consider using alternative polyfill packages or manually including necessary polyfills in your project. This can help mitigate the impact of the vulnerability while you work on a permanent solution.
Conclusion
The rollup-plugin-polyfill-build package has been identified as containing malicious code that poses a significant security risk. Users must act swiftly to remove the package and secure their systems. Regular monitoring for vulnerabilities, such as using Vulert, can help prevent future incidents.
See every vulnerability recorded for rollup-plugin-polyfill-build →
FAQ
Immediately remove the package from your project and rotate any sensitive information stored on the affected system.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.
Currently, there is no patched version available. It is recommended to remove the package entirely.
Failing to address this vulnerability can lead to unauthorized access to sensitive data, potentially compromising your entire system.
No, it is highly advised to remove the package as it is considered fully compromised.