Critical Malicious Code Vulnerability in transform-dynamic-import Package
Summary
MAL-2026-1560: Malicious code in transform-dynamic-import (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 transform-dynamic-import package is an npm module designed to facilitate dynamic imports in JavaScript applications, allowing developers to load modules asynchronously. This functionality is essential for optimizing application performance and managing dependencies effectively. However, the package has been compromised, leading to significant security concerns.
Vulnerability Detail
The vulnerability stems from the presence of malicious code within the transform-dynamic-import 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 embedded malicious code. Users are advised to consider their systems fully compromised if they have this package installed.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall transform-dynamic-import
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
There are no effective workarounds for this vulnerability other than removing the package entirely. Users should ensure that their systems are secure and monitor for any signs of unauthorized access.
Conclusion
The transform-dynamic-import package has been compromised with malicious code, posing a severe risk to any system using it. Immediate action is required to remove the package and secure sensitive information. Utilizing tools like Vulert can help in monitoring and preventing future vulnerabilities.
See every vulnerability recorded for transform-dynamic-import →
FAQ
You should remove the transform-dynamic-import package immediately and rotate any sensitive information stored on the affected system.
You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without needing to sign up.
Failing to address this vulnerability can lead to unauthorized access to sensitive data, potential data breaches, and full control of your system by malicious actors.
Regularly monitor your dependencies for vulnerabilities using tools like Vulert, and ensure to keep your packages updated to the latest versions.
Vulert is a tool that monitors open-source vulnerabilities in your software using just the package-lock.json file. It provides real-time alerts for any vulnerabilities detected.