Critical Malicious Code Vulnerability in localstack-plugin-persistence Package
Summary
MAL-2025-6537: Malicious code in localstack-plugin-persistence (PyPI). Affects localstack-plugin-persistence versions 0.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 localstack-plugin-persistence package is an extension for LocalStack, which is a fully functional local AWS cloud stack. This package allows users to persist data across LocalStack sessions, enhancing the development experience by simulating AWS services locally. However, it has been identified to contain malicious code that poses a significant security risk to users.
Vulnerability Detail
The vulnerability stems from the inclusion of malicious code in version 0.0.1 of the localstack-plugin-persistence package. This code can potentially compromise the security of applications using this package, leading to unauthorized access or data manipulation. The malicious nature of the code was identified by ReversingLabs, highlighting the importance of scrutinizing third-party packages before integration.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
pip uninstall localstack-plugin-persistence
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, avoid using the localstack-plugin-persistence package until a secure version is available. If you need similar functionality, consider using alternative packages that do not have known vulnerabilities.
Conclusion
The localstack-plugin-persistence package has been found to contain malicious code that poses a significant risk to users. It is essential to remove the affected version and monitor for updates. Utilizing tools like Vulert can help in identifying vulnerabilities in your dependencies effectively.
See every vulnerability recorded for localstack-plugin-persistence →
FAQ
It is a plugin for LocalStack that allows data persistence across sessions, simulating AWS services locally.
The malicious code was discovered by ReversingLabs, a cybersecurity firm specializing in threat detection.
Using the affected version can lead to unauthorized access, data manipulation, and potential compromise of your application.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software using just the Pipfile.lock. You can check your application against known vulnerabilities using the Vulert playground.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.