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-61588

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

Amit Schendel
Amit Schendel
Senior Security Researcher

Sep 17, 2026·7 min read·17 visits

Executive Summary (TL;DR)

djust prior to 1.0.7 leaks sensitive database fields (such as user password hashes and administrator flags) to the browser when Django models are bound directly to public LiveView attributes.

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.

Vulnerability Overview

The djust framework is a high-performance web development library that enables Phoenix LiveView-style reactive server-side rendering for Django applications. By utilizing bidirectional connections over WebSockets or Server-Sent Events, the framework maintains state synchronization between the server and client-side Virtual DOM. Developers declare state attributes on a LiveView instance, and any public attribute is automatically serialized and sent to the client to render updates.

Prior to version 1.0.7, a critical flaw existed in the default serialization engine of djust. When a developer assigned a standard Django database Model instance to a public view attribute, the entire model object was serialized without any filtering of sensitive fields. This resulted in the inadvertent transmission of highly sensitive data, such as hashed user credentials, authentication tokens, and administrative privilege indicators directly to the browser.

This behavior created a broad, implicit attack surface because binding database models to view attributes is a standard pattern in modern reactive web architectures. The vulnerability is classified under CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor) and CWE-359 (Exposure of Private Personal Information). It presents a significant risk to applications built on older djust versions that expose user profiles or core domain models to interactive templates.

Root Cause Analysis

The root cause of CVE-2026-61588 lies within the _serialize_model_safely helper function, which was invoked by the custom DjangoJSONEncoder inside djust's state-synchronization engine. When a public attribute on a LiveView was identified as a Django Model instance, the encoder recursively extracted values for all concrete database columns. The implementation lacked any form of field-filtering or authorization-aware validation before assembling the JSON payload.

This flaw was exacerbated by the multi-channel synchronization design of djust. Specifically, there are three primary paths through which over-serialization occurred. The first is active state synchronization (get_state()), where state updates are periodically computed and transmitted as delta packages. The second is state-snapshotting (enable_state_snapshot = True), which serializes the current view state directly into hidden elements within the static HTML structure to facilitate state recovery. The third path is the JIT compiler's fallback mode, which executes a complete object-level serialization if a model is referenced as a whole within the template or when an attribute is declared public but not parsed on a granular property level.

Because the framework prioritized seamless data accessibility over strict boundary controls, it operated on an implicit 'allow-all' model. Consequently, properties like password (holding PBKDF2 or bcrypt hashes), is_superuser, is_staff, and custom business tokens (such as API keys or personal identifiers) were converted into plaintext JSON properties and placed directly onto the websocket stream.

Code Analysis & Patch Mechanics

The security update in version 1.0.7 completely refactored the serialization process to introduce structured, multi-tier protection. Below is a conceptual demonstration of the vulnerable implementation versus the secure implementation in _serialize_model_safely:

# VULNERABLE: djust < 1.0.7
def _serialize_model_safely(model_instance):
    # Iterates and serializes every concrete database field without restriction
    data = {}
    for field in model_instance._meta.concrete_fields:
        data[field.name] = field.value_from_object(model_instance)
    return data
# PATCHED: djust >= 1.0.7
def _serialize_model_safely(model_instance):
    # 1. Check if model provides custom serialization representation
    if hasattr(model_instance, 'to_dict'):
        return model_instance.to_dict()
        
    # 2. Establish hardcoded security floor
    built_in_denylist = {'password', 'is_superuser', 'is_staff'}
    global_denylist = getattr(settings, 'DJUST_SENSITIVE_FIELDS', set())
    merged_denylist = built_in_denylist.union(global_denylist)
    
    # 3. Handle model-level allowlists or exclusion lists
    model_excludes = getattr(model_instance, 'djust_exclude_fields', [])
    model_allowlist = getattr(model_instance, 'djust_serializable_fields', None)
    
    data = {}
    for field in model_instance._meta.concrete_fields:
        name = field.name
        
        # Skip any blacklisted or excluded fields
        if name in merged_denylist or name in model_excludes:
            continue
            
        # Enforce strict allowlist if defined
        if model_allowlist is not None and name not in model_allowlist:
            # Always allow crucial identity fields
            if name not in ['id', 'pk']:
                continue
                
        data[name] = field.value_from_object(model_instance)
    return data

In addition to the database serialization enhancements, the JIT compiler's fallback behavior was modified. When a model instance is evaluated without explicit field selection (e.g., passing a model object to a generic helper or referencing user directly), the engine no longer attempts to serialize the complete object. Instead, it emits a minimal representation containing only id, pk, __model__, and the string representation of the object (__str__). This architectural design prevents inadvertent exposure even when custom rules are omitted.

Exploitation Methodology

Exploitation of CVE-2026-61588 requires no specialized exploit code or exploit toolkits. Because the vulnerability is an over-serialization flaw, the server itself pushes the sensitive fields directly to the user's browser. An attacker merely needs to inspect the incoming websocket frames or static HTML state-snapshots to extract the data.

An administrative session is not required to extract the logged-in user's own credentials. A low-privileged attacker can register a normal user account and navigate to any interactive view that binds their own model instance. By opening the developer tools, filtering for active websocket traffic, and selecting the initialization frame, the attacker will find their own PBKDF2 password hash within the JSON structure. This hash can then be extracted for offline cracking attacks.

In scenarios where a view displays a list of objects—such as workspace members or directories—and binds those models to a public attribute, the attacker can harvest information for other users. This includes obtaining the is_staff or is_superuser status of accounts across the platform. This information is highly valuable for mapping out high-privilege targets, facilitating lateral movement and privilege escalation inside the target network.

Security Impact Assessment

The CVSS v3.1 score of 6.5 (Medium) reflects the read-only nature of the leak, but the downstream risk to confidentiality is significant. Password hashes retrieved from serialized states allow attackers to initiate high-speed offline cracking campaigns. If weak passwords are used by personnel, those accounts can be completely compromised, bypassing authentication mechanisms on other systems that share credentials.

Additionally, exposing privilege flags like is_superuser and is_staff removes the opacity of the application's access control architecture. Attackers can pinpoint administrative users with perfect accuracy. Private personal information (PII) and authentication tokens used for external APIs might also be exposed if they are stored in fields belonging to the serialized model.

While the vulnerability lacks an active exploit signature in the wild, its structural nature makes it highly predictable. Any deployment using djust version prior to 1.0.7 is implicitly affected if models are assigned to public view fields. This makes remediation urgent for enterprise instances handling personal or financial data.

Remediation & Strategic Mitigations

The primary remediation path is upgrading the djust library to version 1.0.7 or later. This upgrade instantiates secure-by-default serialization behaviors, establishing a built-in denylist that strips passwords and staff/superuser flags automatically during recursive serialization. It also enables project-wide configuration via the DJUST_SENSITIVE_FIELDS setting in Django's configuration.

For instances where an immediate framework upgrade is impossible, developers should implement immediate tactical workarounds. The most robust immediate patch is to convert public view attributes to private view attributes. In djust, prefixing an attribute with a leading underscore (such as self._user instead of self.user) marks it as private, completely excluding it from client-side synchronization and snapshots.

Alternatively, developers can manually structure data representation by extracting only the specific primitive fields required by the user interface. Rather than assigning the complete user model, assign simple primitive strings like self.username = request.user.username and self.email = request.user.email. This prevents any automatic or fallback serialization from touching the model instance directly, maintaining a strict boundary between database objects and the network layer.

Official Patches

djust-orgdjust v1.0.7 Release

Technical Appendix

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

Affected Systems

djust framework (Python package)

Affected Versions Detail

Product
Affected Versions
Fixed Version
djust
djust-org
< 1.0.71.0.7
AttributeDetail
CWE IDCWE-200, CWE-359
Attack VectorNetwork
CVSS v3.16.5 (Medium)
EPSS ScoreNot indexed
ImpactHigh Confidentiality Exposure
Exploit StatusNone (Theoretical)
KEV StatusNot listed

MITRE ATT&CK Mapping

T1552Unsecured Credentials
Credential Access
T1005Data from Local System
Collection
CWE-200
Exposure of Sensitive Information to an Unauthorized Actor

The product exposes sensitive information to an actor who is not authorized to have access to that information.

Vulnerability Timeline

Vulnerability patched and GitHub Security Advisory GHSA-pvg3-6q9j-mj3x published
2026-06-22
CVE Record officially published to the MITRE and NVD catalogs
2026-09-16

References & Sources

  • [1]GitHub Security Advisory GHSA-pvg3-6q9j-mj3x
  • [2]djust v1.0.7 Release Notes
  • [3]Official CVE Record

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

•40 minutes ago•CVE-2026-126297
7.5

CVE-2026-126297: Algorithmic Complexity Denial of Service in NLTK ConllCorpusReader

CVE-2026-126297 (GHSA-v8f3-6phw-6mh9) is an uncontrolled resource consumption and algorithmic complexity vulnerability in the Natural Language Toolkit (NLTK) prior to version 3.10.4. Located in the Semantic Role Labeling (SRL) parser within `nltk/corpus/reader/conll.py`, the flaw allows an attacker to trigger quadratic O(N^2) CPU processing overhead by providing crafted CoNLL-formatted corpus inputs containing decoy span columns or nested full-width verb spans. Applications parsing untrusted linguistic corpora can experience prolonged CPU exhaustion and application-level Denial of Service (DoS).

Amit Schendel
Amit Schendel
1 views•12 min read
•about 2 hours ago•CVE-2026-126298
7.5

CVE-2026-126298: Quadratic Algorithmic Complexity Denial of Service in NLTK Tree.chomsky_normal_form

CVE-2026-126298 (also tracked as GHSA-r53h-rw34-8h97) is an algorithmic complexity Denial of Service (DoS) vulnerability in the Natural Language Toolkit (NLTK) Python library affecting all versions prior to 3.10.4. The vulnerability resides in the nltk.tree.transforms.chomsky_normal_form function and its corresponding public method Tree.chomsky_normal_form(). When transforming a parse tree into Chomsky Normal Form using the default right-factoring strategy, the function repeatedly invokes list.pop(0) inside a loop iterating over all children of a node. In CPython, removing the initial element of a standard list requires an O(N) memory shift operation, causing the overall binarization algorithm to degrade to O(N^2) quadratic time complexity relative to the width of a node. Furthermore, converting horizontal node width into vertical tree depth bypasses initial parsing depth bounds, triggering subsequent stack exhaustion (RecursionError) when recursive methods traverse the mutated structure. Unauthenticated remote attackers who can submit bracketed tree strings to applications invoking this transformation can exhaust single-threaded CPU resources or induce unhandled application exceptions.

Alon Barad
Alon Barad
3 views•12 min read
•about 3 hours ago•CVE-2026-126299
7.5

CVE-2026-126299: Quadratic Algorithmic Complexity Denial of Service in NLTK CCG Lexicon Parser

An algorithmic complexity vulnerability (CWE-407) in the Natural Language Toolkit (NLTK) before version 3.10.4 allows remote unauthenticated attackers to cause a denial of service via crafted Combinatory Categorial Grammar (CCG) lexicon strings. The parser in nltk.ccg.lexicon.fromstring performs repeated immutable string slicing, concatenation, and regex tail capturing, resulting in O(n^2) CPU consumption when processing wide, flat category definitions.

Alon Barad
Alon Barad
4 views•10 min read
•about 4 hours ago•CVE-2026-126295
7.1

CVE-2026-126295: Path Traversal and Unconfined File Access in NLTK BllipParser

CVE-2026-126295 (also tracked as GHSA-fg9w-wfp5-j933) is a path confinement bypass vulnerability in the Natural Language Toolkit (NLTK) affecting versions 3.10.0 prior to 3.10.4. The flaw resides in nltk/parse/bllip.py within the BllipParser class and its factory method BllipParser.from_unified_model_dir(). Unlike sibling tool wrappers in NLTK that enforce data-root confinement via the nltk.pathsec module, BllipParser passes caller-supplied filesystem paths directly into the third-party bllipparser native C extension without validation. When an application passes untrusted input as model paths or directories to BllipParser, an attacker can force the native extension to open arbitrary files on the local filesystem. This leads to information disclosure through parser diagnostic oracles, local model tampering via shared directories, and denial of service by hanging worker threads on blocking special files (such as FIFOs or device nodes) or exhausting memory via oversized files.

Amit Schendel
Amit Schendel
2 views•11 min read
•about 5 hours ago•CVE-2026-126300
5.3

CVE-2026-126300: Algorithmic Complexity Denial of Service in NLTK TreebankWordTokenizer.span_tokenize

CVE-2026-126300 (GHSA-ffr9-mgrr-wcvr) is an inefficient algorithmic complexity vulnerability (CWE-407) in the Natural Language Toolkit (NLTK) Python library affecting versions 3.2.5 prior to 3.10.4. The flaw resides in the quote-restoration routine of TreebankWordTokenizer.span_tokenize and NLTKWordTokenizer.span_tokenize, where repeated calls to list.pop(0) over matched quote tokens introduce quadratic O(n^2) time complexity. An unauthenticated remote attacker who supplies input containing long sequences of double-quote characters can exhaust CPU resources and degrade service availability.

Amit Schendel
Amit Schendel
3 views•10 min read
•about 6 hours ago•GHSA-GPWC-27CW-RH9R
5.3

CVE-2026-126301: Quadratic CPU Exhaustion in NLTK LegalitySyllableTokenizer

The Natural Language Toolkit (NLTK) versions 3.6 through 3.10.3 contain an algorithmic complexity vulnerability in the LegalitySyllableTokenizer.tokenize method. When processing tokens composed of continuous runs of vowels, an unguarded string reversal and set membership lookup loop executes in quadratic time relative to the input token length. Remote attackers capable of submitting arbitrary text to applications utilizing this tokenizer can trigger sustained single-core CPU exhaustion and application-level denial of service.

Amit Schendel
Amit Schendel
5 views•10 min read