Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › CVE › Python

CVE-2026-125112 — djust-org djust

Low · CVSS 2.3EPSS 0.6% First seen November 09, 2026
PythonRustWebVulnerabilities

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

  1. Upgrade djust to 1.0.10 or 1.1.2 or later on the matching release branch
  2. Audit templates that combine mark_safe content with with, for, include-with, unpacking, or assign tags
  3. Confirm that variable names reused in these constructs cannot receive user-controlled data
  4. Check the vendor advisory for updates on affected version ranges and exploitation

Written with AI assistance from the sources listed on this page; check the vendor advisory before acting.

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.

Description: NIST National Vulnerability Database (public domain)

Severity breakdown

Low · 2.3 CVSS 4.0 base score 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.

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

Vector 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

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

ProductAffected versionsFixed in
djust-org djust< 1.0.10, >= 1.1.0, < 1.1.2—

From the vendor's CVE record; confirm with the vendor advisory before relying on a version number.

References by type

Vendor advisories

Patches and fixed releases

Details from NVD (public domain).

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