Malicious Code Detected in express-http-uatraits Package
Summary
MAL-2025-20074: Malicious code in express-http-uatraits (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 express-http-uatraits package is an npm library designed to facilitate HTTP request handling in Node.js applications. It provides various utilities for managing HTTP traits, making it a popular choice among developers for building web applications. However, this package has been identified to contain malicious code, posing significant security risks to applications that utilize it.
Vulnerability Detail
The vulnerability in the express-http-uatraits package stems from the inclusion of malicious code that can compromise the security of applications using this library. This code may allow unauthorized access, data exfiltration, or other harmful actions within the application environment. The malicious nature of this code was discovered by Amazon Inspector, highlighting the importance of scrutinizing third-party packages for security flaws.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall express-http-uatraits
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 measure, consider replacing express-http-uatraits with an alternative package that provides similar functionality without the associated risks. Review your application to identify any dependencies on this package and refactor the code accordingly.
Conclusion
The express-http-uatraits package has been identified as containing malicious code, posing serious security risks to applications. It is essential to remove this package and consider alternatives to safeguard your application. Regular monitoring and vulnerability assessments are crucial for maintaining application security.
See every vulnerability recorded for express-http-uatraits →
FAQ
The express-http-uatraits package is an npm library used for handling HTTP traits in Node.js applications.
The malicious code can lead to unauthorized access and potential data breaches within applications that utilize this package.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without any signup.
If immediate removal is not possible, consider implementing strict access controls and monitoring to mitigate potential risks until you can safely remove the package.
Currently, there is no patched version available. It is recommended to uninstall the package until a secure version is released.