Skip to main content

djust CVE-2026-125112

| EUVDEUVD-2026-120493 LOW
Cross-site Scripting (XSS) (CWE-79)
2026-11-09 GitHub_M GHSA-xjw9-38cr-6372
2.3
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify djust app reusing a mark_safe name
  2. Delivery
    Inject payload into rebound context name
  3. Exploit
    Template bind inherits stale safety grant
  4. Execution
    Value emitted without escaping
  5. Impact
    Victim 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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

djust < 1.0.10
djust 1.1.0, < 1.1.2

Affected Packages

pypi djust fix: 1.0.10, 1.1.2

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

Vendor (GitHub_M) PRIMARY 2.3 LOW
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
vuln.today AI 4.7 MEDIUM

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.

3.1 AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Nov 09, 2026 - 23:18 EUVD

DescriptionCVE.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

EPSS Score
0.3%
Top 72% exploitable
Prevalence
Low
niche Django/Rust reactive-rendering library, limited enterprise footprint
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

12
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +12
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy