Critical Malicious Code Vulnerability in @trigo/hapi-auth-signedlink Package
Summary
MAL-2025-190829: Malicious code in @trigo/hapi-auth-signedlink (npm). Affects @trigo/hapi-auth-signedlink versions 1.3.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/hapi-auth-signedlink package is an npm module designed for authentication in Hapi.js applications, utilizing signed links for secure access. It is intended to simplify the process of managing user access through temporary links. However, this package has been compromised, leading to severe security risks for any application that utilizes it.
Vulnerability Detail
The vulnerability stems from the presence of malicious code within the @trigo/hapi-auth-signedlink package, identified by the GHSA-malware source. This malicious code can fully compromise any computer running the package, allowing unauthorized access to sensitive data, including secrets and keys. The implications are severe, as the installation of this package can lead to complete control of the affected system by an external entity.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @trigo/hapi-auth-signedlink
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 workaround, it is recommended to uninstall the compromised package using the command: npm uninstall @trigo/hapi-auth-signedlink. Ensure that you monitor your application for any unusual activity following the removal.
Conclusion
The @trigo/hapi-auth-signedlink package has been identified as containing malicious code that poses significant security risks. Immediate action is required to remove the package and secure any sensitive information. Utilizing tools like Vulert can help in monitoring for such vulnerabilities in the future.
See every vulnerability recorded for @trigo/hapi-auth-signedlink →
FAQ
Immediately uninstall the package and rotate any secrets or keys stored on the affected system.
You can use Vulert's playground at 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 and complete control of your system by malicious actors.
Yes, Vulert can monitor and alert you in real-time for open-source vulnerabilities using just your package-lock.json file.
The first step is to uninstall the compromised package and assess your system for any signs of compromise.