Malicious Code Detected in aws-pdk Package - Security Alert
Summary
MAL-2025-15228: Malicious code in aws-pdk (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-pdk package is a tool designed for developers to streamline the process of working with AWS services. It provides a set of utilities and abstractions that simplify the integration of various AWS functionalities into applications. However, this package has been identified as containing malicious code, which poses significant security risks to users and their applications.
Vulnerability Detail
The vulnerability in the aws-pdk package originates from the inclusion of malicious code that can compromise the integrity and security of applications using this package. This malicious code can lead to unauthorized access, data breaches, or other harmful actions within the affected systems. It is crucial for users to be aware of this vulnerability to mitigate potential risks.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall aws-pdk
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, users can remove the aws-pdk package from their project until a secure version is released. This can be done with the command: 'npm uninstall aws-pdk'. Additionally, consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The aws-pdk package has been identified with a serious vulnerability due to the presence of malicious code. Users are advised to take immediate action by updating or uninstalling the package to protect their applications. Regular monitoring for updates and vulnerabilities is essential for maintaining security.
See every vulnerability recorded for aws-pdk →
FAQ
The aws-pdk package is a tool for developers that simplifies the integration of AWS services into applications.
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. Check your application using the Vulert playground at Vulert Scanner.
As of now, a patched version is not mentioned, but users should regularly check for updates to the package.
If immediate updates are not possible, consider uninstalling the aws-pdk package and using alternative solutions until a secure version is released.