# CVE-2026-125112: djust: A template binding inherits a context safety grant it never earned (XSS)

- Severity: Low 2.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 39% of CVEs (2026-12-01)
- Published: 2026-09-17T20:31:48.000Z
- Modified: 2026-11-13T14:17:52.223Z
- Also known as: GHSA-xjw9-38cr-6372
- Weaknesses: CWE-79, CWE-116
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- djust-org djust: < 1.0.10; >= 1.1.0, < 1.1.2
- djust (PyPI): before 1.0.10; from 1.1.0 before 1.1.2

## Every score

- GitHub_M: CVSS:4.0 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`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`

## References

- <https://github.com/djust-org/djust/security/advisories/GHSA-xjw9-38cr-6372> (web)
- <https://github.com/djust-org/djust/pull/2444> (web)
- <https://github.com/djust-org/djust/commit/06d213dbdd82f5b1c2affe2f869ae88a71809e4a> (web)
- <https://github.com/djust-org/djust/commit/5288e5dbc8d83d8aee8a22a0a7a3a478461c8965> (web)
- <https://github.com/djust-org/djust/releases/tag/v1.0.10> (web)
- <https://github.com/djust-org/djust/releases/tag/v1.1.2> (web)
- <https://github.com/djust-org/djust> (package)

## Sources

- CVE List: [CVE-2026-125112](https://www.cve.org/CVERecord?id=CVE-2026-125112), CVE Terms of Use, modified 2026-11-13
- GitHub Advisory Database: [GHSA-xjw9-38cr-6372](https://github.com/advisories/GHSA-xjw9-38cr-6372), CC-BY-4.0, modified 2026-11-09
- NVD: [CVE-2026-125112](https://nvd.nist.gov/vuln/detail/CVE-2026-125112), Public domain, modified 2026-11-13

---

Page: https://cve.day/CVE-2026-125112 · Whole record: https://cve.day/CVE-2026-125112.json · Rebuilt by cve.day 2026-11-25T22:59:49.676Z
