Critical Malicious Code Vulnerability in @trigo/trigo-hapijs Package
Summary
MAL-2025-190690: Malicious code in @trigo/trigo-hapijs (npm). Affects @trigo/trigo-hapijs versions 5.0.1. 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 @trigo/trigo-hapijs package is a Node.js framework designed to facilitate the development of applications using the Hapi.js server framework. It provides various utilities and integrations that enhance the development experience. However, it has been found to contain malicious code that compromises the security of any system where it is installed.
Vulnerability Detail
The vulnerability stems from the presence of embedded malicious code within version 5.0.1 of the @trigo/trigo-hapijs package. This code can fully compromise any computer running the package, allowing unauthorized access to sensitive information, including secrets and keys. The malicious nature of the code has been confirmed by security researchers, and it poses a significant risk to users and their data.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @trigo/trigo-hapijs
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 and securing your system. It is advisable to monitor your system for any unusual activity following the removal.
Conclusion
The discovery of malicious code in the @trigo/trigo-hapijs package poses a serious threat to users and their systems. Immediate action is required to uninstall the package and secure any sensitive information. Users are encouraged to utilize tools like Vulert to monitor for vulnerabilities in their applications.
See every vulnerability recorded for @trigo/trigo-hapijs →
FAQ
You should immediately uninstall the package and rotate any sensitive information stored on the affected system.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.
No, there is currently no patched version available for the @trigo/trigo-hapijs package. The only solution is to remove the package.
Failing to address this vulnerability can lead to unauthorized access to sensitive data, potential data breaches, and complete system compromise.
You will need to find alternative packages or solutions to replace the functionality provided by @trigo/trigo-hapijs, as it is no longer safe to use.