Improper Encoding or Escaping of Output Affecting djust package, versions [,1.1.2)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-DJUST-20158886
  • published27 Sept 2026
  • disclosed17 Sept 2026
  • creditUnknown

Introduced: 17 Sep 2026

New CVE NOT AVAILABLE CWE-116  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

Upgrade djust to version 1.1.2 or higher.

Overview

djust is a Phoenix LiveView-style reactive components for Django with Rust-powered performance. Real-time UI updates over WebSocket, no JavaScript build step required.

Affected versions of this package are vulnerable to Improper Encoding or Escaping of Output via improper handling of context safety grants during template variable rebinding. An attacker can inject and execute arbitrary scripts by supplying crafted input that is assigned to a context variable previously marked as safe, which is then rebound in template constructs such as {% with %}, {% for %}, {% include ... with %}, or assign tags. This can occur without the use of filter chains or the |safe filter anywhere in the template.

Workaround

This vulnerability can be mitigated by avoiding the reuse of context names for both trusted (marked safe) content and untrusted input, and by not rebinding such names in {% with %}, {% for %}, {% include ... with %} or assign tags.

CVSS Base Scores

version 4.0
version 3.1