CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-61591

CVE-2026-61591: State Snapshot Injection and Mass Assignment in djust Framework

Amit Schendel
Amit Schendel
Senior Security Researcher

Sep 17, 2026·6 min read·4 visits

Executive Summary (TL;DR)

Unsigned client-side state snapshots in the djust framework allow remote authenticated attackers to execute arbitrary state injection and mass assignment via tampered WebSocket frames, leading to full privilege escalation. This has been resolved in version 1.0.7 through cryptographic HMAC signatures.

CVE-2026-61591 is a high-severity state injection and authorization bypass vulnerability affecting the djust framework's opt-in State Snapshot feature. Prior to version 1.0.7, the framework restored public view state snapshots returned from the client browser during back-navigation without validating their cryptographic authenticity or integrity. This flaw allows malicious clients to manipulate serialized JSON payloads to inject unauthorized properties, leading to mass assignment (CWE-915) and privilege escalation. Version 1.0.7 addresses this issue by introducing HMAC cryptographic signatures bound to both the view configuration and the user's session identifier.

Vulnerability Overview

The djust framework is designed to provide reactive, server-side rendered application state synchronization using Django on the backend and WebSockets or Server-Sent Events (SSE) on the frontend. To optimize user navigation, particularly back-navigation, developers can configure the enable_state_snapshot attribute within their LiveView classes.\n\nWhen a client navigates back to a previously loaded view, instead of executing a standard, backend-controlled initialization path through the mount method, the client returns a serialized representation of its last known state, termed the state snapshot. This state is contained inside the state_json parameter and parsed directly by the server to reconstruct the dynamic attributes of the view interface.\n\nIn versions of the framework prior to 1.0.7, this restoration flow lacked verification mechanisms to confirm the authenticity and integrity of the client-provided state. This structural design vulnerability allows a malicious client to modify local serialized states and transmit forged properties to the server, resulting in state injection (CWE-915) and bypass of critical authorization systems.

Root Cause Analysis

The root cause of this vulnerability lies in the lack of cryptographic validation of the state snapshot before the restoration process. During typical operation, the state snapshot is sent from the client browser over a WebSocket handshake during a live_redirect_mount frame. In vulnerable releases of djust, the server-side controller parses the JSON document directly without confirming whether the payload was originally generated and signed by the server.\n\nUpon receiving the state_json payload, the server invokes internal recovery methods, which dynamically assign the properties listed in the JSON dictionary directly onto the instanced view class using an attribute setting function. While the safe_setattr wrapper prevents modification of private and special magic properties, it allows direct, unvetted modification of public variables. Because developers often store authorization variables such as user identification, administrative privilege flags, or transactional balances in these public properties, the state restoration process allows clients to override local business logic.\n\nFurthermore, because the restore workflow skips the default mount function, any verification logic implemented inside the initialization path is bypassed. This dynamic state assignment is executed purely based on client-submitted inputs, enabling attackers to execute privilege escalation or target other client contexts without needing valid credentials.

Code Analysis

The vulnerable version of djust deserialized the snapshot without any verification step. Below is the technical comparison of the insecure restoration model versus the patched implementation added in version 1.0.7 inside the file python/djust/security/state_snapshot.py.\n\npython\n# Insecure conceptual state restoration in vulnerable versions (< 1.0.7)\ndef restore_snapshot(view, client_snapshot_dict):\n # NO verification of origin or signature\n for key, value in client_snapshot_dict.items():\n # safe_setattr only prevents underscore-prefixed names\n safe_setattr(view, key, value)\n\n\nThe implementation introduced in version 1.0.7 mitigates this vulnerability by using Django's cryptographic TimestampSigner combined with a designated salt configuration (SNAPSHOT_SALT = "djust.state_snapshot"). Below is the structured representation of the secure snapshot verification module:\n\npython\n# Patched secure snapshot verification implementation in version 1.0.7\nfrom django.core import signing\nimport json\n\nSNAPSHOT_SALT = "djust.state_snapshot"\n\ndef sign_snapshot(state_json: str, view_slug: str, session_key: str) -> str:\n # Bind state to specific view and session to prevent cross-view or cross-session replay\n envelope = json.dumps({\n "slug": view_slug,\n "sid": session_key or "",\n "state": state_json\n }, sort_keys=True)\n return signing.TimestampSigner(salt=SNAPSHOT_SALT).sign(envelope)\n\n\nThe verified snapshot restoration verifies the cryptographic signature, the expiration timestamp (TTL), the matching view slug, and the active session key. If any of these validations fail, the framework throws an error or silently falls back to executing the secure, backend-controlled mount() initialization flow, entirely neutralizing injection attempts.

Exploitation Methodology

Exploitation of this vulnerability requires an attacker to interact with a web page utilizing the djust library with state snapshots enabled. The attacker identifies the presence of the snapshot feature by reviewing network transmissions or inspecting local storage structures containing the serialized state attributes.\n\nOnce a target view is identified, the attacker modifies the local plaintext JSON snapshot before a history navigation event is triggered. Alternatively, the attacker intercepts the WebSocket connection and alters the data payload of the live_redirect_mount frame. This manipulation alters the data values to grant administrative properties or target alternative account records.\n\njson\n{\n "type": "live_redirect_mount",\n "view": "myapp.views.MyDashboardView",\n "url": "/dashboard/",\n "state_snapshot": {\n "view_slug": "myapp.views.MyDashboardView",\n "state_json": "{\"is_admin\": true, \"account_id\": 1}",\n "ts": 0\n }\n}\n\n\nWhen the modified frame is transmitted to the server, the lack of signature validation causes the backend to parse the dictionary directly. The dynamic attribute loops apply the values to the active session object, granting immediate administrative permissions or access to private customer accounts.

Impact Assessment

The impact of this vulnerability is classified as High, with a CVSS v3.1 base score of 8.1. An attacker can exploit this flaw to bypass authentication logic, escalate privileges, and gain access to restricted data fields.\n\nBecause the vulnerability allows direct, unchecked attribute assignment, its exact severity is determined by the specific variables exposed inside the view instance. If an application stores financial transactions, administrative flags, or sensitive personal indicators as public attributes on its views, those values can be altered.\n\nCurrently, there is no evidence of active exploitation in the wild, and the vulnerability is not listed on the CISA KEV catalog. However, because the exploit process requires minimal sophistication, immediate application of the patch or configuration workarounds is required to protect deployment environments.

Mitigation & Fix Completeness

The primary mitigation for this vulnerability is to upgrade the djust package to version 1.0.7 or higher, which includes the cryptographic signature framework. This signature blocks unauthorized snapshot modifications by verifying authenticity on each reconnection handshake.\n\nbash\npip install --upgrade djust>=1.0.7\n\n\nIf upgrading is not feasible, organizations must disable the state snapshot feature globally by ensuring enable_state_snapshot = False is set across all application view classes. This forces the framework to initialize views through the secure server-side mount() method on every navigation event.\n\nIn addition, developers must follow secure coding practices by avoiding storing authorization flags or critical backend identifiers in public view attributes. Standardizing authorization validation using session-based variables guarantees security boundaries are enforced.

Fix Analysis (1)

Technical Appendix

CVSS Score
8.1/ 10
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

Affected Systems

djust framework library

Affected Versions Detail

Product
Affected Versions
Fixed Version
djust
djust-org
< 1.0.71.0.7
AttributeDetail
CWE IDCWE-345, CWE-915
Attack VectorNetwork
CVSS v3.1 Score8.1 (High)
Exploit StatusProof-of-Concept / Conceptual
KEV StatusNot Listed
Affected ComponentState Snapshot Feature (live_redirect_mount)

MITRE ATT&CK Mapping

T1190Exploit Public-Facing Application
Initial Access
T1548Abuse Elevation Control Mechanism
Privilege Escalation
T1565.002Data Manipulation: Transmitted Data Manipulation
Impact
CWE-345
Insufficient Verification of Data Authenticity

The software does not sufficiently verify that the state snapshot originating from the client is authentic and has not been tampered with before processing it, leading to arbitrary state injection (CWE-915).

Known Exploits & Detection

GitHub AdvisoryConceptual proof-of-concept testing suite included within the djust security regression suite verifying snapshot signature mismatches.

Vulnerability Timeline

Vulnerability patched and secure v1.0.7 update pushed by package maintainers.
2026-06-22
CVE-2026-61591 is published and analyzed by security coordinators.
2026-09-16

References & Sources

  • [1]GHSA-c67v-vqrp-m5wj: Cryptographic state-snapshot signature bypass in djust
  • [2]djust v1.0.7 Release Details and Changelog
  • [3]Patched Source Code Implementation for Secure Snapshot Serialization
  • [4]Official Regression Test Coverage verifying cryptographic verification

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•about 2 hours ago•CVE-2026-61597
5.1

CVE-2026-61597: Cross-Site Scripting (XSS) via Unsanitized URI Schemes in djust Component Template Tags

Prior to version 1.0.7, the djust Python package is vulnerable to Stored and Reflected Cross-Site Scripting (XSS) via component template tags. The underlying issue exists because the package fails to sanitize or validate incoming URI schemes when rendering URLs inside interactive HTML attributes like href or action. While the framework HTML-escapes strings to prevent attribute breakout, it permits the execution of arbitrary JavaScript via the javascript: pseudo-protocol.

Amit Schendel
Amit Schendel
3 views•5 min read
•about 3 hours ago•CVE-2026-61592
7.4

CVE-2026-61592: Session Hijacking and Authorization Bypass in djust SSE Transport

A high-severity session hijacking and authorization bypass vulnerability has been identified in the djust framework prior to version 1.0.7. The flaw resides in the Server-Sent Events (SSE) transport implementation, which keyed sessions solely by client-provided session identifiers without verifying session ownership or binding. This allows an attacker who possesses or guesses a victim's session identifier to send malicious post messages to execute arbitrary state machine event handlers under the identity and permissions of the victim.

Alon Barad
Alon Barad
4 views•6 min read
•about 5 hours ago•CVE-2026-19931
9.8

CVE-2026-19931: Unauthenticated Session Reuse Vulnerability in libcurl Negotiate Implementation

A critical connection reuse vulnerability exists in curl and libcurl between versions 7.64.1 and 8.21.0 inclusive when Negotiate authentication (SPNEGO) is configured with blank credentials. Because libcurl fails to track changes to the underlying operating system's ambient security context, persistent authenticated connections are incorrectly matched and shared between distinct user sessions, allowing subsequent users to execute requests with the authorization state of the prior user.

Alon Barad
Alon Barad
6 views•8 min read
•about 5 hours ago•CVE-2026-61588
6.5

CVE-2026-61588: Sensitive Data Exposure via Over-Serialization in djust Framework

A sensitive data exposure vulnerability exists in the djust framework before version 1.0.7. When serializing Django models to public view attributes, the framework fails to filter out sensitive fields such as passwords, privilege flags, and private tokens, leading to over-serialization and exposure of sensitive records to the client browser.

Amit Schendel
Amit Schendel
5 views•7 min read
•about 6 hours ago•CVE-2026-61596
7.1

CVE-2026-61596: Broken Object-Level Access Control (IDOR) in djust Framework

A broken object-level access control (IDOR) vulnerability exists in the djust Django framework prior to version 1.0.7. The framework's per-object authorization hooks were enforced correctly over WebSockets but entirely bypassed on synchronous HTTP GET rendering, SPA client-side navigation, and embedded sub-views, allowing authenticated attackers to view arbitrary unauthorized database records.

Alon Barad
Alon Barad
5 views•5 min read
•about 7 hours ago•CVE-2026-61589
6.3

CVE-2026-61589: Host Header Propagation Failure in djust WebSocket Live Path Reconstructor

CVE-2026-61589 is a security-bypass and information-disclosure vulnerability in the djust library prior to version 1.0.7. The library's WebSocket live path component fails to propagate the client HTTP Host header when dynamically reconstructing Django HttpRequest objects. Consequently, multi-tenant Django applications that rely on Host-based resolution may fail to isolate data correctly under certain configurations, leading to unauthorized cross-tenant data access.

Alon Barad
Alon Barad
3 views•6 min read