Critical Malicious Code Vulnerability in forgot-sent Package
Summary
MAL-2025-20780: Malicious code in forgot-sent (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 'forgot-sent' package is an npm library designed to assist developers in managing forgotten password functionalities within applications. It provides features such as sending password reset emails and generating secure tokens. However, this package has been found to contain malicious code, posing significant risks to applications that utilize it.
Vulnerability Detail
The vulnerability in the 'forgot-sent' package stems from the inclusion of malicious code that can compromise the security of applications using this library. This code can lead to unauthorized access, data breaches, and potential exploitation of sensitive user information. The issue was introduced in version 0 and affects all subsequent versions, making it critical for users to address this vulnerability promptly.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall forgot-sent
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 may consider removing the 'forgot-sent' package from your project until a secure version is released. This can be done using the command: 'npm uninstall forgot-sent'. Alternatively, you can implement your own password reset functionality without relying on this package.
Conclusion
The 'forgot-sent' package has been identified to contain malicious code, which poses a significant risk to applications using it. Users are urged to update the package or remove it until a secure version is available. Utilizing tools like Vulert can help in monitoring vulnerabilities effectively.
See every vulnerability recorded for forgot-sent →
FAQ
The 'forgot-sent' package is used to manage forgotten password functionalities, including sending password reset emails and generating secure tokens.
The malicious code can lead to unauthorized access and data breaches, compromising the security of applications that utilize the package.
You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without any signup.
Users are advised to check the package repository for any patched versions of 'forgot-sent' and update accordingly.
If immediate updates are not possible, consider removing the package or implementing your own password reset functionality as a temporary measure.