Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify djust app reusing a mark_safe name
-
DeliveryInject payload into rebound context name
-
ExploitTemplate bind inherits stale safety grant
-
ExecutionValue emitted without escaping
-
ImpactVictim renders template, script executes
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the application previously marked some context value safe (via mark_safe, or any framework path granting a context-key safety) under a NAME, and that a template then rebinds that same name to untrusted input using {% with %}, {% for %} (including loop variables, p.a descendants, and k,v tuple unpacking), {% include … with %}, or an {% … as x %} assign tag. No |safe filter and no custom filter chain are needed. Limiting factors: a victim must actually render the affected template (UI:P / user interaction), impact is confined to XSS in the victim's browser (VC:L/VI:L, no availability impact), and the {% include … with … only %} form is already inert because the fresh context carries no grants. Exploitation is NOT possible against configurations that never reuse a mark_safe'd name for untrusted data - the vendor's own stated workaround. Affected: djust <1.0.10 and >=1.1.0,<1.1.2. |
| Impact | All signals converge on low real-world urgency. The vuln.today decision label is 'monitor' (not act_now/emergency), there is no CISA KEV listing, no EPSS score is supplied, and the vendor-assigned CVSS 4.0 base score is only 2.3. The 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L) shows a network, unauthenticated flaw but gated by two real brakes: AT:P (a specific attack requirement) and UI:P (passive victim interaction - a victim must render the affected template). The technical impact is limited (VC:L/VI:L, VA:N) consistent with reflected/stored XSS rather than full compromise. The decisive limiter is a deployment precondition stated in the advisory: the application must have marked some value safe under a context name (via mark_safe) that a template later rebinds via {% with %}, {% for %}, {% include … with %}, tuple unpacking, or an assign tag. This is described by the vendor as 'an ordinary pattern' but it is still an application-specific precondition, not a universal default. No EPSS and no KEV means no evidence of active or at-scale exploitation; the strongest exploitation signal is a vendor-run reproducer referenced during the security release, not confirmed in-the-wild use. Net: a genuine XSS class worth patching on the normal maintenance cadence, but correctly rated low priority rather than an emergency. |
| Exploit ScenarioDerived | A djust view marks trusted markup safe under a short name such as p, item, or row; a template later rebinds that same name to attacker-influenced input, e.g. {% with p=user_input %}{{ p }}{% endwith %}, and the inherited safety grant causes the attacker value to be emitted unescaped. When a victim renders that template, a payload like <img src=x onerror=alert(1)> executes in their browser (stored or reflected XSS). No |safe filter or custom filter is required; a vendor reproducer confirming the class exists is referenced, but no public weaponized exploit is identified in the provided data. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 09, 2026
Cross-site scripting in the djust Django template engine before 1.0.10 and in 1.1.x before 1.1.2 lets a template binding inherit a safety grant it never earned: djust keys its context output-safety channel by variable name, so when a template rebinds a name that a view had previously marked with mark_safe (via {% with %}, {% for %} loop variables or tuple unpacking, {% include ... with %}, or an assign tag), the new attacker-controlled value is emitted unescaped instead of being HTML-escaped as Django would. Affected are applications running djust <1.0.10 or >=1.1.0,<1.1.2 that both mark a context name safe and later reuse that name for untrusted input; a victim must render the affected template, and impact is limited to script execution in that victim's browser (no availability or scope-crossing system impact). Severity is low (CVE CVSS 4.0 score 2.3; assessed CVSS 3.1 AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N), the vuln.today decision label is monitor, there is no CISA KEV entry, and a public reproducer reference derived from a prior advisory exists but is not verified as working exploit code, so all signals converge on low real-world urgency.
RemediationAI
Vendor-released patch: upgrade to djust 1.0.10 if you are on the 1.0 branch, or to 1.1.2 if you are on 1.1.x (>=1.1.0,<1.1.2 is vulnerable); 1.2.0 on main carries the same 'a bind replaces the grant' rule. Fixes are available via https://github.com/djust-org/djust/pull/2444 and the commits https://github.com/djust-org/djust/commit/06d213dbdd82f5b1c2affe2f869ae88a71809e4a and https://github.com/djust-org/djust/commit/5288e5dbc8d83d8aee8a22a0a7a3a478461c8965, with releases at https://github.com/djust-org/djust/releases/tag/v1.0.10 and https://github.com/djust-org/djust/releases/tag/v1.1.2. Before upgrading, the vendor's stated workaround is to stop reusing a single context name for both mark_safe'd content and untrusted input, and to avoid rebinding such a name inside {% with %}, {% for %}, {% include ... with %} or an assign tag - a naming convention change that costs nothing at runtime but requires auditing every template that shares short names with a marked context key and must be maintained until the upgrade is applied.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
djust implements Phoenix LiveView-style reactive server-side rendering for Django with a Rust core (crates/djust_core) that renders templates. Its output-safety channel is an allowlist of dotted paths called Context::safe_keys, populated from Python by rust_bridge._collect_safe_keys, and Context::is_safe answers purely by looking a NAME up in that list rather than by checking the identity or provenance of the value currently bound to it. The defect is a name-versus-value confusion in the CWE-79 / CWE-116 class: every bind sink ({% with %}, the {% for %} arm including positional loop variables and k,v tuple unpacking, {% include ... with %}, and the {% ... as x %} assign-tag merge) copied the resolved VALUE and left the existing GRANT attached to the name, so {% with p=hostile %}{{ p }}{% endwith %} emitted '<img src=x onerror=alert(1)>' as a live element where Django escapes it, and descendant lookups such as {{ p.a }} inherited the same stale 'p.a' grant. No |safe filter and no custom filter chain are required, only one prior mark_safe on the name. The fix introduces Context::bind, which replaces rather than inherits the grant by revoking the bound name and every name.… path beneath it (the descendants described the value being shadowed); {% include ... with ... only %} was already inert because the fresh context carries no grants and is now pinned as a test. Two over-escaping arms ({% with body=post.text|linebreaks %} and mark_safe values reached through dict.values/dict.items) are deliberately left unfixed on the 1.1 branch because they escape more than Django rather than less.
Know when Djust gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
Network-delivered XSS executing in the victim's browser (S:C, C:L/I:L); AC:H because it depends on the app reusing a mark_safe'd name, and UI:R because a victim must render the template.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
djust provides Phoenix LiveView-style reactive server-side rendering for Django with Rust-powered performance. Prior to versions 1.0.10 and 1.1.2, djust keys context output-safety grants by variable name and fails to revoke a grant when a template bind replaces the value associated with that name. A template using {% with %}, {% for %}, {% include ... with %}, tuple unpacking, or assign tags can therefore rebind a name that previously held mark_safe content and emit the new attacker-controlled value without escaping, including descendant lookups through the rebound name. This can cause stored or reflected cross-site scripting when a victim renders the affected template. This issue is fixed in versions 1.0.10 and 1.1.2.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Authentication bypass in djust's WebSocket LiveView consumer allows unauthenticated remote clients to invoke protected e
Cross-site request forgery in djust's Server-Sent-Events transport affects all versions prior to 1.0.7 and allows a cros
Unauthenticated remote attackers can read live Django view and session state and invoke server-side handlers through dju
Mass assignment in djust, a Django library providing Phoenix LiveView-style reactive server-side rendering, allows any c
EUVD-2026-120493
GHSA-xjw9-38cr-6372
NVD
CVE.org
EPSS
Exploit-DB