CVE-2021-32091
Python vulnerability analysis and mitigation

Overview

A Cross-site Scripting (XSS) vulnerability (CVE-2021-32091) was discovered in StackLift LocalStack version 0.12.6. LocalStack is a popular open source application that provides an easy-to-use test framework for cloud applications, enabling users to host AWS cloud setups in local networks for developing and testing cloud and serverless apps (Sonar Blog, Daily Swig).

Technical details

The vulnerability exists due to unsanitized HTTP response handling in LocalStack. When combined with Server-Side Request Forgery (SSRF), an attacker can send an XSS payload as a response via a controlled server, leading to a persistent Cross-Site Scripting vulnerability. The application explicitly allows cross-origin requests through any page by setting special HTTP headers in the response, which enables attackers to detect and attack LocalStack instances through XHR responses (Sonar Blog).

Impact

When exploited, this vulnerability can be chained with other vulnerabilities (SSRF) to achieve complete compromise of local instances and execute arbitrary system commands. The vulnerability allows attackers to bypass modern browser CORS restrictions and potentially steal sensitive data from the test cloud, including AWS Cloud authorization headers (Sonar Blog, Daily Swig).

Exploitability

Despite being a local application, the vulnerability can be exploited remotely through a target user's browser. An attacker can trigger cross-site HTTP requests to the victim's local network via JavaScript code when the victim visits a malicious website. The lack of authentication in LocalStack and its CORS configuration makes the exploitation possible (Sonar Blog).

Mitigation and workarounds

The vulnerability was reported to the vendor in October 2020, but remained unpatched in subsequent versions (v0.12.6 and v0.12.7) as the project maintainers determined that real-world attack scenarios were limited due to LocalStack being executed on local machines (Daily Swig).

Community reactions

Security researchers from Sonarsource emphasized that while real-world attacks against local instances are less likely than against directly exposed applications, developers should be aware of these risks to protect their setups and write secure code for their own applications (Sonar Blog).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-61539CRITICAL10
  • Python logoPython
  • xinference
NoYesAug 21, 2026
CVE-2026-49360HIGH7.8
  • Python logoPython
  • recce
NoYesAug 21, 2026
CVE-2026-68508HIGH7.8
  • Python logoPython
  • hydra-core
NoYesAug 21, 2026
CVE-2026-54457HIGH7.7
  • Python logoPython
  • tensorzero
NoYesAug 21, 2026
CVE-2026-43980MEDIUM6.3
  • Python logoPython
  • malla
NoNoAug 21, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management