CVE-2026-125112 — djust-org djust
Analysis
CVE-2026-125112: djust template rebinding flaw allows unescaped output and XSS, fixed in 1.0.10 and 1.1.2
CVE-2026-125112 is a cross-site scripting flaw in djust, a Django framework with LiveView-style rendering, rated LOW (CVSS 2.3) by NVD. Versions 1.0.10 and 1.1.2 fix it, and the sources do not say whether it is being exploited.
Key points
- djust versions before 1.0.10 and 1.1.2 are affected; 1.0.10 and 1.1.2 fix the issue
- A safe-output grant is not revoked when a template rebinds the same variable name
- The described impact is stored or reflected XSS when a victim renders the affected template
- NVD rates it LOW (CVSS 2.3); exploitation status is not stated in the sources
What's affected
CVE-2026-125112 affects djust, a framework that brings Phoenix LiveView-style reactive server-side rendering to Django, with Rust-based components for performance. According to the NVD entry, the flaw is present in versions before 1.0.10 and before 1.1.2. Versions 1.0.10 and 1.1.2 contain the fix. The sources do not describe any other affected version ranges, so administrators should check their installed version against the vendor's release notes.
How the flaw works
djust decides which template variables may be output without HTML escaping by recording a grant keyed to the variable name. The NVD description says that when a template rebinds that same name to a new value, the earlier grant is not revoked. The constructs named include with, for, include with, tuple unpacking, and assign tags. The new value can then be emitted without escaping, and lookups beneath the rebound name are also affected. The core problem is that a trust decision made for one value carries over to a different value that reuses its name.
How serious is it
NVD rates the issue LOW, with a CVSS score of 2.3. The described impact is cross-site scripting, which can be stored or reflected, when a victim renders the affected template. Real exposure depends on whether an application's templates rebind a name that once held marked-safe content to data that an attacker can influence. The sources do not say whether the flaw is being exploited, and they do not report public exploit code. Those points have not been published in the available material.
What to do
Upgrade djust to 1.0.10 or 1.1.2, or a later release on the same branch. If an upgrade cannot happen immediately, review templates that use mark_safe or other safe-marked content together with the affected tags, and confirm that any reused variable names cannot receive user-controlled input. Keep an eye on the vendor's advisory for any further detail on affected ranges or exploitation.
Recommended actions
- Upgrade djust to 1.0.10 or 1.1.2 or later on the matching release branch
- Audit templates that combine mark_safe content with with, for, include-with, unpacking, or assign tags
- Confirm that variable names reused in these constructs cannot receive user-controlled data
- Check the vendor advisory for updates on affected version ranges and exploitation
Summary
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.
Severity breakdown
Low · 2.3
An attacker without an account can exploit this over the network if a user views or visits something, but only under specific conditions.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Special conditions
- only in some setups or conditions
- Login needed
- no
- User action needed
- yes, a user must view or visit something
- Impact
- low on confidentiality and integrity, none on availability
- Impact on other systems
- none
Weakness
- CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
- CWE-116: Improper Encoding or Escaping of Output
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| djust-org djust | < 1.0.10, >= 1.1.0, < 1.1.2 | — |
References by type
Vendor advisories
Patches and fixed releases
Affected
- djust-org djust
What to do
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-125112?
CVE-2026-125112 is a cross-site scripting flaw in djust, a Django framework with LiveView-style rendering, rated LOW (CVSS 2.3) by NVD. Versions 1.0.10 and 1.1.2 fix it, and the sources do not say whether it is being exploited. Weakness type: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (CWE-79).
How severe is CVE-2026-125112?
CVE-2026-125112 has a CVSS 4.0 base score of 2.3 (low), from the CNA (github.com). An attacker without an account can exploit this over the network if a user views or visits something, but only under specific conditions.
Is CVE-2026-125112 being exploited?
Not as far as is known: CVE-2026-125112 is not in CISA's Known Exploited Vulnerabilities catalog as of November 26, 2026. EPSS estimates a 0.6% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-125112?
djust-org djust < 1.0.10, >= 1.1.0, < 1.1.2.
How do I fix CVE-2026-125112?
Upgrade djust to 1.0.10 or 1.1.2 or later on the matching release branch. Audit templates that combine marksafe content with with, for, include-with, unpacking, or assign tags. Confirm that variable names reused in these constructs cannot receive user-controlled data.
Timeline & sources
References
Related vulnerabilities & news
- Tapo MCP Server Allows Unauthenticated Access via DNS Rebinding
- CVE-2026-65320 — AnswerDotAI fastcore
- Apache Texera CVE-2026-112788: Unauthenticated Python Environment Endpoints in Non-Kubernetes Setups
- Gunicorn Memory Exhaustion Vulnerability in ASGI HTTP/1 Parser
- Apache Arrow Rust Parquet Bloom Filter Flaw Leaves Header Data Unencrypted in Encrypted Files