Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-24370

CVE-2025-24370: Django-Unicorn XSS Vulnerability

CVE-2025-24370 is a Python class pollution flaw in Django-Unicorn that enables XSS, DoS, and authentication bypass attacks. This post covers the technical details, affected versions, security impact, and mitigation.

Updated: January 22, 2026

CVE-2025-24370 Overview

Django-Unicorn is a popular library that adds modern reactive component functionality to Django templates. A critical Python class pollution vulnerability has been identified in affected versions of Django-Unicorn that allows remote attackers to manipulate the Python runtime through specially crafted component requests.

The vulnerability stems from the core set_property_value function, which can be remotely triggered by users who craft malicious component requests. By controlling the second and third parameters of this vulnerable function, attackers can achieve arbitrary changes to Python runtime status, leading to severe security implications including Cross-Site Scripting (XSS), Denial of Service (DoS), and Authentication Bypass attacks.

Critical Impact

Remote attackers can exploit Python class pollution to achieve XSS, DoS, and Authentication Bypass in virtually any Django-Unicorn-based application without authentication.

Affected Products

  • Django-Unicorn versions prior to 0.62.0

Discovery Timeline

  • 2025-02-03 - CVE CVE-2025-24370 published to NVD
  • 2025-02-03 - Last updated in NVD database

Technical Details for CVE-2025-24370

Vulnerability Analysis

This vulnerability is classified under CWE-915 (Improperly Controlled Modification of Dynamically-Determined Object Attributes), commonly known as "Mass Assignment" or in Python contexts, "Class Pollution." The flaw allows unauthenticated remote attackers to modify Python object attributes at runtime through network-accessible component requests.

The vulnerability manifests when Django-Unicorn processes property name updates through the set_property_value function. The property name is split by periods to traverse nested object attributes, but prior to the fix, there was no validation to prevent access to Python's special "dunder" (double underscore) attributes like __class__, __init__, __globals__, or other magic methods.

At least five distinct exploitation methods have been documented, each capable of causing significant security impact:

  1. Cross-Site Scripting (XSS) through runtime manipulation
  2. Denial of Service (DoS) by corrupting critical runtime objects
  3. Authentication Bypass by modifying authentication-related attributes
  4. Potential Remote Code Execution through __globals__ manipulation
  5. Application state corruption leading to unpredictable behavior

Root Cause

The root cause lies in the set_property_value function in django_unicorn/views/action_parsers/utils.py. This function accepts user-controlled property names and splits them by periods to enable nested attribute access. Without proper input validation, attackers could inject property paths containing Python dunder attributes (__attr__), allowing them to traverse and modify the Python class hierarchy and runtime environment.

Attack Vector

The attack is network-accessible and requires no authentication or user interaction. Attackers craft malicious component requests that specify property names containing dunder attributes. When Django-Unicorn processes these requests, it inadvertently allows modification of Python runtime objects, class definitions, or global variables.

For example, an attacker could submit a property name like __class__.__init__.__globals__ to access and modify the global namespace of the application, potentially overwriting critical functions or security controls.

python
# Security patch in django_unicorn/views/action_parsers/utils.py
     The following code updates UnicornView.author.name based the payload's `author.name`.
     """
     property_name_parts = property_name.split(".")
+    for part in property_name_parts:
+        if part.startswith("__") and part.endswith("__"):
+            raise AssertionError("Invalid property name")
     component_or_field = component
     data_or_dict = data  # Could be an internal portion of data that gets set
 

Source: GitHub Commit for Django Unicorn

The patch adds validation to check each component of the property name path. If any part starts and ends with double underscores (dunder pattern), the function raises an AssertionError and refuses to process the request, effectively blocking class pollution attempts.

Detection Methods for CVE-2025-24370

Indicators of Compromise

  • HTTP requests to Django-Unicorn endpoints containing property names with __ (double underscore) patterns
  • Unusual component update requests with deeply nested property paths
  • Application errors or assertion failures related to property name validation
  • Unexpected changes in application behavior, authentication state, or rendered content

Detection Strategies

  • Monitor web application logs for requests containing __class__, __init__, __globals__, or similar dunder patterns in request payloads
  • Implement Web Application Firewall (WAF) rules to detect and block requests with Python dunder attribute patterns
  • Deploy application-level monitoring to detect unusual property access patterns in Django-Unicorn components
  • Review Django error logs for AssertionError: Invalid property name messages (indicates blocked attack attempts on patched systems)

Monitoring Recommendations

  • Enable detailed logging for Django-Unicorn component requests to capture full request payloads
  • Configure alerting for patterns matching __[a-zA-Z]+__ in component property names
  • Monitor for unexpected application crashes, authentication anomalies, or XSS incidents that could indicate exploitation
  • Implement runtime application self-protection (RASP) to detect object manipulation attempts

How to Mitigate CVE-2025-24370

Immediate Actions Required

  • Upgrade Django-Unicorn to version 0.62.0 or later immediately
  • Review application logs for evidence of exploitation attempts prior to patching
  • Audit Django-Unicorn component implementations for any unexpected behavior
  • Conduct security testing to verify the patch has been successfully applied

Patch Information

The vulnerability has been addressed in Django-Unicorn version 0.62.0. The fix implements input validation in the set_property_value function to reject property names containing dunder attributes. All users are strongly advised to upgrade immediately.

For detailed patch information, see:

  • GitHub Commit for Django Unicorn
  • GitHub Security Advisory GHSA-g9wf-5777-gq43

Workarounds

  • No known workarounds exist for this vulnerability according to the security advisory
  • Upgrade to version 0.62.0 is the only recommended mitigation
  • As a temporary measure, consider implementing WAF rules to block requests containing dunder patterns, though this is not a complete solution
  • If upgrade is not immediately possible, consider temporarily disabling Django-Unicorn components until patching can be completed
bash
# Upgrade Django-Unicorn to the patched version
pip install django-unicorn>=0.62.0

# Verify the installed version
pip show django-unicorn | grep Version

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechDjango Unicorn

  • SeverityCRITICAL

  • CVSS Score9.3

  • EPSS Probability0.29%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-915
  • Technical References
  • GitHub Commit for Django Unicorn

  • GitHub Security Advisory GHSA-g9wf-5777-gq43
  • Related CVEs
  • CVE-2026-31815: Django-Unicorn Auth Bypass Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English