CVE-2025-24370
Python vulnerability analysis and mitigation

Overview

Django-Unicorn, a library that adds modern reactive component functionality to Django templates, was found to contain a critical python class pollution vulnerability (CVE-2025-24370). The vulnerability exists in the core functionality set_property_value, which can be remotely triggered by users through crafted component requests. The issue affects versions prior to 0.62.0 and was disclosed on February 3, 2025 (GitHub Advisory).

Technical details

The vulnerability stems from the set_property_value function in django_unicorn/views/action_parsers/utils.py, which allows remote users to manipulate property values through component requests. The function fails to properly validate property paths, enabling attackers to traverse to other objects in the Python runtime using magic attributes. For example, by setting the property_name to __init__.__globals__, attackers can modify global context objects of the component module, including imported modules in the dependency chain (GitHub Advisory).

Impact

The vulnerability has severe implications, enabling at least five different exploitation methods that can result in Cross-Site Scripting (XSS), Denial of Service (DoS), and Authentication Bypass attacks in Django-Unicorn-based applications. Attackers can modify any global objects including variables, instances, classes, and functions of any module in the dependency chain (GitHub Advisory, NVD).

Exploitability

The vulnerability is highly exploitable through multiple attack vectors. Five specific exploitation methods have been identified: 1) Reflected XSS by overwriting bs4 HTML sanitizer, 2) Stored XSS by overwriting Unicorn Setting and Django Json Script Sanitizer, 3) Stored XSS by overwriting Django Error Page Source Code, 4) Authentication Bypass by overwriting Django Secret Key, and 5) Denial of Service by overwriting timed Decorator Method (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 0.62.0. The fix includes blocking paths that start with __ (double under/dunder) which represent magic variables/methods, and implementing a blacklist for restricted paths such as globals and builtins. There are no known workarounds for this vulnerability, and all users are advised to upgrade to version 0.62.0 (GitHub Advisory, NVD).

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