# CVE-2026-61597: djust is vulnerable to stored/reflected XSS via javascript: URLs in built-in component template tags

- Severity: Medium 5.1 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/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.30%, higher than 24% of CVEs (2026-12-02)
- Published: 2026-09-16T21:50:53.000Z
- Modified: 2026-10-01T17:56:04.247Z
- Also known as: GHSA-4mf4-73j6-mvrw, PYSEC-2026-4037
- Weaknesses: CWE-79
- 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 version 1.0.7, many djust built-in component template tags (`djust.components.templatetags.*`) render a developer/user-supplied URL into an `href` / `action` attribute, HTML-escaping it with `conditional_escape` but never validating the URL scheme. HTML escaping prevents attribute breakout but does not neutralize a `javascript:` URI (which needs no escapable characters), so a URL value of `javascript:alert(document.cookie)` lands verbatim in `<a href="javascript:alert(document.cookie)">` and executes in the victim's session on click. Version 1.0.7 contains a fix. As a workaround, do not pass user-controllable URLs to the affected built-in component tags; pre-validate URL schemes in application code before binding them to component arguments.

(As written by CVE List.)

## Affected

- djust-org djust: < 1.0.7
- djust (PyPI): before 1.0.7

## Every score

- GitHub_M: CVSS:4.0 5.1 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`

## References

- <https://github.com/djust-org/djust/security/advisories/GHSA-4mf4-73j6-mvrw> (web)
- <https://github.com/djust-org/djust/releases/tag/v1.0.7> (web)
- <https://github.com/djust-org/djust> (package)
- <https://pypi.org/project/djust> (package)
- <https://github.com/advisories/GHSA-4mf4-73j6-mvrw> (advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-61597> (advisory)

## Sources

- CVE List: [CVE-2026-61597](https://www.cve.org/CVERecord?id=CVE-2026-61597), CVE Terms of Use, modified 2026-09-17
- GitHub Advisory Database: [GHSA-4mf4-73j6-mvrw](https://github.com/advisories/GHSA-4mf4-73j6-mvrw), CC-BY-4.0, modified 2026-10-01
- NVD: [CVE-2026-61597](https://nvd.nist.gov/vuln/detail/CVE-2026-61597), Public domain, modified 2026-09-30
- PyPA Advisory Database: [PYSEC-2026-4037](https://osv.dev/vulnerability/PYSEC-2026-4037), CC-BY-4.0, modified 2026-10-01

---

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