Malicious Code Detected in georef Package - Security Alert
Summary
MAL-2025-21355: Malicious code in georef (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 georef package is an npm library designed for geolocation functionalities, allowing developers to integrate geographic data into their applications. However, it has been identified to contain malicious code that poses significant security risks to users and their applications.
Vulnerability Detail
The vulnerability in the georef package originates from the inclusion of malicious code that can compromise user data and application integrity. This code can lead to unauthorized access, data breaches, and potential exploitation of the affected systems. The malicious nature of this vulnerability makes it critical for users to take immediate action to safeguard their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall georef
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 measure, users can avoid using the georef package until a secure version is confirmed. Alternatively, consider using other geolocation libraries that do not have known vulnerabilities.
Conclusion
The georef package has been found to contain malicious code, posing serious security risks. Users are urged to update the package immediately or consider alternative solutions to protect their applications. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.
See every vulnerability recorded for georef →
FAQ
The malicious code can compromise user data and application integrity, leading to unauthorized access and potential exploitation.
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.
Yes, users should update to the latest patched version of the georef package to mitigate the vulnerability.
As a workaround, consider using alternative libraries for geolocation functionalities until the georef package is secured.
The vulnerability was identified by Amazon Inspector, a security tool that helps in detecting vulnerabilities in software packages.