Malicious Code Detected in @thiagoemmanuell/unhandledrejection Package - Version 1.0.0
Summary
MAL-2026-2081: Malicious code in @thiagoemmanuell/unhandledrejection (npm). Affects @thiagoemmanuell/unhandledrejection versions 1.0.0. 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 @thiagoemmanuell/unhandledrejection package is an npm library designed to handle unhandled promise rejections in JavaScript applications. It aims to provide developers with a mechanism to catch and manage these errors effectively. However, the package has been identified as malicious due to its communication with a domain linked to harmful activities, posing significant risks to applications that utilize it.
Vulnerability Detail
The vulnerability stems from the malicious nature of the @thiagoemmanuell/unhandledrejection package, which has been flagged by the OpenSSF Package Analysis project. This package, specifically version 1.0.0, is known to communicate with a domain associated with malicious activities. The ramifications of using this package include potential data breaches, unauthorized access to sensitive information, and the risk of compromising the integrity of the application. Developers using this package should be aware of the severe security implications it poses.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @thiagoemmanuell/unhandledrejection
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 implement your own error handling for unhandled promise rejections without relying on this package. Here’s a simple example of how to do this in your application:
process.on('unhandledRejection', (reason, promise) => {
console.error('Unhandled Rejection at:', promise, 'reason:', reason);
// Application specific logging, throwing an error, or other logic here
});
Conclusion
The @thiagoemmanuell/unhandledrejection package has been flagged as malicious due to its communication with a harmful domain. It is crucial for developers to remove this package from their projects and implement alternative solutions to ensure the security and integrity of their applications.
See every vulnerability recorded for @thiagoemmanuell/unhandledrejection →
FAQ
It is an npm package designed to handle unhandled promise rejections in JavaScript applications.
The package has been identified as malicious because it communicates with a domain associated with harmful activities.
Using this package can lead to data breaches, unauthorized access, and compromise the integrity of your application.
You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without any signup.
You should uninstall the package immediately and consider using alternative libraries that provide similar functionality without the security risks.