Critical Malicious Code Vulnerability in gofinity Package
Summary
MAL-2025-21630: Malicious code in gofinity (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 gofinity package is an npm library designed for specific functionalities within JavaScript applications, providing various utilities for developers. However, it has been identified as containing malicious code, which poses significant security risks to applications that depend on it. This vulnerability can lead to unauthorized access or data breaches, making it crucial for users to be aware of its implications.
Vulnerability Detail
The vulnerability in the gofinity package originates from the inclusion of malicious code that can compromise the security of applications utilizing this package. This code can lead to various harmful outcomes, including data theft, unauthorized access to user information, and potential exploitation of the application environment. The malicious nature of this code was confirmed by Amazon Inspector, highlighting the urgent need for users to address this issue.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall gofinity
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 gofinity package from your project until a safe version is released. You can do this by executing the following command: npm uninstall gofinity. This will help mitigate the risk of exposure to the malicious code.
Conclusion
The discovery of malicious code within the gofinity package poses a serious threat to applications that utilize it. Users are urged to take immediate action by updating or uninstalling the package to safeguard their applications from potential security breaches.
See every vulnerability recorded for gofinity →
FAQ
The gofinity package is an npm library that provides various utilities for JavaScript applications. However, it has been found to contain malicious code.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. By using the Vulert playground, you can check if your application is affected without needing to sign up.
Using the gofinity package can expose your application to security vulnerabilities, including data theft and unauthorized access, due to the malicious code it contains.
Users should check the package repository for any updates or patches that address the malicious code issue in the gofinity package.
If an immediate update is not possible, consider uninstalling the gofinity package as a temporary measure to protect your application from potential threats.