Malicious Code Detected in globalid Package - Security Alert
Summary
MAL-2025-21583: Malicious code in globalid (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 globalid package is a Node.js library used for generating unique identifiers. It is commonly utilized in various applications to ensure that each entity has a distinct ID. However, recent findings have revealed that this package contains malicious code, posing significant security risks to applications that depend on it.
Vulnerability Detail
The vulnerability in the globalid package stems from the inclusion of malicious code that can compromise the security of applications utilizing this library. This code may lead to unauthorized access, data breaches, or other malicious activities. The issue was identified in version 0 and affects all subsequent versions, making it critical for developers to address this vulnerability promptly.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall globalid
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 globalid package from your project until a secure version is released. You can do this by running: 'npm uninstall globalid'. This will prevent any potential exploitation of the vulnerability while you seek alternatives.
Conclusion
The discovery of malicious code in the globalid package poses a serious threat to applications that rely on it. Developers are urged to update or remove the package to mitigate risks. Utilizing tools like Vulert can help in monitoring and managing vulnerabilities effectively.
See every vulnerability recorded for globalid →
FAQ
The globalid package is used for generating unique identifiers in Node.js applications.
The malicious code was identified through security assessments conducted by Amazon Inspector.
Using the compromised globalid package can lead to unauthorized access, data breaches, and other security incidents.
Yes, you can use Vulert to monitor and alert you in real-time for open-source vulnerabilities in your software. It analyzes your package-lock.json file without requiring code access.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.
Related vulnerabilities
Recent vulnerabilities recorded for globalid.