Vulnerability · Published Sep 16, 2026 · Assigned by GitHub_M
CVE-2026-61597djust is vulnerable to stored/reflected XSS via javascript: URLs in built-in component template tags
Medium 5.1
In plain English
A medium-severity cross-site scripting in djust from djust-org. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 36% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | djust | 1.0.7 | GHSA-4mf4-73j6-mvrw |
| PyPI | djust | 1.0.7 | PYSEC-2026-4037 |
Affected products (as reported)
Weakness: CWE-79 · Vector: 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 x_refsource_CONFIRM
- https://github.com/djust-org/djust/releases/tag/v1.0.7 x_refsource_MISC