Critical Malicious Code Vulnerability in localstack-plugin-persistence Package

Summary

31/07/2025
CRITICAL
No i
Critical
Not published

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 ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 →

Share this vulnerability

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.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback