Critical Malicious Code Vulnerability in formboy Package
Summary
MAL-2025-20790: Malicious code in formboy (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 formboy package is an npm library designed for handling form submissions in web applications. It provides a simple interface for parsing and validating form data, making it a popular choice among developers. However, recent findings have revealed that the package contains malicious code, posing significant security risks to applications that utilize it.
Vulnerability Detail
The vulnerability in the formboy package originates from the inclusion of malicious code that can compromise the integrity and security of applications using this library. This malicious code can potentially lead to unauthorized access, data breaches, or the execution of harmful operations within the affected systems. It is crucial for developers to be aware of this vulnerability and take immediate action to mitigate its impact.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall formboy
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
If an immediate update is not feasible, consider removing the formboy package from your project and replacing it with a more secure alternative for handling form submissions. Review your codebase to ensure that no references to formboy remain.
Conclusion
The discovery of malicious code in the formboy package poses a serious threat to applications that rely on it for form handling. Developers are urged to take immediate action by updating or replacing the package to safeguard their applications from potential attacks.
See every vulnerability recorded for formboy →
FAQ
The malicious code can execute unauthorized actions within applications, potentially leading to data breaches or system compromises.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
As of now, a patched version has not been released. It is essential to monitor the package repository for updates.
Consider removing the formboy package and replacing it with a secure alternative for form handling.
The vulnerability was identified by Amazon Inspector, a security tool that helps in detecting vulnerabilities in software packages.