Critical Malicious Code Vulnerability in fossamail Package
Summary
MAL-2025-20808: Malicious code in fossamail (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 fossamail package is an npm library designed for email management and communication. It offers features such as email sending, receiving, and organizing, making it a popular choice among developers for building email-related applications. However, it has been found to contain malicious code that poses significant security risks to users and their applications.
Vulnerability Detail
The vulnerability in the fossamail package originates from the inclusion of malicious code that can compromise the integrity and security of applications using this package. This malicious code can lead to unauthorized access, data breaches, and other harmful consequences for users and their systems. The vulnerability affects all versions of the package starting from version 0, making it critical for users to take immediate action.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall fossamail
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, consider removing the fossamail package from your project until a secure version is released. You can do this by running the command: 'npm uninstall fossamail'. This will prevent any potential exploitation of the vulnerability while you await a fix.
Conclusion
The discovery of malicious code in the fossamail package poses a significant threat to users and their applications. Immediate action is required to mitigate risks by updating or uninstalling the package. Utilizing tools like Vulert can help in monitoring and managing open-source vulnerabilities effectively.
See every vulnerability recorded for fossamail →
FAQ
Fossamail is an npm library used for managing email functionalities, including sending and receiving emails.
The malicious code can lead to unauthorized access and data breaches, compromising the security of applications that utilize the package.
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.
As a temporary measure, consider uninstalling the fossamail package to prevent any exploitation of the vulnerability until a secure version is available.
Utilize tools like Vulert to monitor your dependencies for vulnerabilities and receive alerts in real-time.