Malicious Code Detected in node-ts-esm-auto Package - Vulnerability MAL-2025-6108
Summary
MAL-2025-6108: Malicious code in node-ts-esm-auto (npm). Affects node-ts-esm-auto versions >= 99.99.99. 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 node-ts-esm-auto package is an npm library designed to facilitate the use of ECMAScript modules in Node.js applications. It aims to simplify the transition from CommonJS to ESM by providing automatic handling of module imports and exports. However, this package has been identified as having a serious vulnerability that allows it to communicate with a domain linked to malicious activities, potentially compromising user data and application integrity.
Vulnerability Detail
The vulnerability identified as MAL-2025-6108 originates from the node-ts-esm-auto package, which has been found to communicate with a domain associated with malicious activities. This could lead to unauthorized data access, data exfiltration, or the execution of harmful scripts within the user's environment. The issue was introduced in version 99.99.99, and it poses significant risks to applications relying on this package for module management.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall node-ts-esm-auto
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 temporary workaround, you can remove the node-ts-esm-auto package from your project until a secure version is released. You can do this by executing the following command: npm uninstall node-ts-esm-auto. Additionally, consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The node-ts-esm-auto package has been identified with a critical vulnerability that allows communication with a malicious domain. It is crucial for developers using this package to take immediate action by updating to a secure version or implementing workarounds to mitigate risks. Utilizing tools like Vulert can help in monitoring and managing such vulnerabilities effectively.
See every vulnerability recorded for node-ts-esm-auto →
FAQ
node-ts-esm-auto is an npm library that helps developers manage ECMAScript modules in Node.js applications, simplifying the transition from CommonJS.
This vulnerability allows the node-ts-esm-auto package to communicate with a domain linked to malicious activities, posing risks such as unauthorized data access.
You can use Vulert, which monitors open-source vulnerabilities in real-time. By analyzing your package-lock.json file, Vulert can alert you to any vulnerabilities, including MAL-2025-6108.
As of now, a patched version of the node-ts-esm-auto package should be checked in the package repository. If available, updating the package will resolve the issue.
If immediate updates are not possible, consider uninstalling the package or using alternative libraries that do not have this vulnerability.