Malicious Code Detected in golf-5km-project: A Critical npm Vulnerability
Summary
MAL-2025-21643: Malicious code in golf-5km-project (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 'golf-5km-project' is an npm package designed for developers to integrate functionalities related to golf distance calculations and project management. It is utilized in various applications for its ease of use and comprehensive features. However, this package has been found to contain malicious code, posing significant risks to users and their applications.
Vulnerability Detail
The vulnerability in the 'golf-5km-project' package arises from the inclusion of malicious code that can compromise the security of applications utilizing this package. This code can potentially lead to unauthorized access, data breaches, or other harmful actions within the user's environment. The malicious code was introduced in version 0 and affects all subsequent versions.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall golf-5km-project
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 using alternative packages that provide similar functionalities without the associated risks. Ensure to review the security of any alternative package before integrating it into your project.
Conclusion
The discovery of malicious code in the 'golf-5km-project' npm package highlights the importance of vigilance in managing open-source dependencies. Users are strongly advised to uninstall the affected package and seek alternatives to ensure the security of their applications.
See every vulnerability recorded for golf-5km-project →
FAQ
The malicious code can lead to unauthorized access and potential data breaches within applications using 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 any signup.
It is crucial to uninstall the package immediately and look for secure alternatives to mitigate any risks.
Currently, there is no patched version available for the 'golf-5km-project'. Users are advised to uninstall the package.
Regularly monitor your dependencies using tools like Vulert and keep your packages updated to the latest secure versions.