Malicious Code Detected in aws-api-gateway-js-client Package
Summary
MAL-2025-15222: Malicious code in aws-api-gateway-js-client (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 aws-api-gateway-js-client is an npm package designed to facilitate interactions with AWS API Gateway services. It provides developers with a streamlined way to manage API requests and responses, enhancing productivity and integration capabilities. However, this package has been found to contain malicious code, posing significant security risks to applications that utilize it.
Vulnerability Detail
The vulnerability stems from the inclusion of malicious code within the aws-api-gateway-js-client package. This code can potentially compromise the security of applications that depend on this package, leading to unauthorized access, data breaches, or other malicious activities. The issue was introduced in version 0 and affects all subsequent versions, making it critical for users to address this vulnerability promptly.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall aws-api-gateway-js-client
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 aws-api-gateway-js-client package from your project until a secure version is released. You can uninstall it using the following command: npm uninstall aws-api-gateway-js-client.
Conclusion
The aws-api-gateway-js-client package has been identified as containing malicious code, which poses significant security risks. Users are urged to update or remove the package to protect their applications. Utilizing tools like Vulert can help monitor for such vulnerabilities in real-time.
See every vulnerability recorded for aws-api-gateway-js-client →
FAQ
It is an npm package that helps developers interact with AWS API Gateway services.
The specific nature of the malicious code has not been disclosed, but it poses security risks to applications using the package.
You can use Vulert, which monitors and alerts for open-source vulnerabilities. Visit Vulert Scanner to check your application without any signup.
Users are advised to check the package repository for any updates or patches that address this vulnerability.
As a temporary measure, consider uninstalling the aws-api-gateway-js-client package until a secure version is available.