Skip to main content
← All vulnerabilities
CVE-2026-61597PYSEC-2026-4037GHSA-4MF4-73J6-MVRW

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.0.7
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • djust-org djust

    fixed in 1.0.7

  • djustPyPI

    fixed in 1.0.7

  • djustPyPI

    fixed in 1.0.7

References 2

GitHub · djust-org/djust