Critical Malicious Code Vulnerability in googleapis-node Package
Summary
MAL-2025-6164: Malicious code in googleapis-node (npm). Affects googleapis-node versions 0.0.0 – 1.0.1. 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 googleapis-node package is a widely used library in the Node.js ecosystem that provides access to Google APIs. It allows developers to integrate various Google services into their applications seamlessly. However, this package has been found to contain malicious code, posing a significant security risk to any system that has it installed.
Vulnerability Detail
The vulnerability stems from embedded malicious code within the googleapis-node package. This code can compromise the entire system where the package is installed, allowing unauthorized access to sensitive information such as secrets and keys. The malicious nature of the code means that even after removal of the package, there is no guarantee that all traces of the malware will be eliminated, potentially leaving the system vulnerable to further attacks.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall googleapis-node
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
Currently, the only effective workaround is to uninstall the googleapis-node package. You can do this by running the following command in your terminal: npm uninstall googleapis-node. After uninstalling, check for any remaining malicious components and take necessary actions to secure your system.
Conclusion
The googleapis-node package contains embedded malicious code that poses a severe security risk. Immediate action is required to uninstall the package and secure any compromised systems. Regular monitoring for vulnerabilities, such as using Vulert, can help prevent future incidents.
See every vulnerability recorded for googleapis-node →
FAQ
The googleapis-node package is a library that allows developers to interact with various Google APIs in their Node.js applications.
The malicious code can compromise your entire system, allowing unauthorized access to sensitive information and potentially leading to further security breaches.
You should immediately uninstall the googleapis-node package and rotate any secrets or keys stored on the affected system.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. You can check your application using the Vulert playground without any signup.
While removing the package is essential, there is no guarantee that all malicious software will be removed. It is recommended to take additional security measures.