Skip to main content

djust: Six template-layer defects emit attacker-controlled markup unescaped (XSS)

0
High
Published: 09/17/2026 (09/17/2026, 20:31:43 UTC)
Source: GCVE Database
Product: djust

Description

Multiple template-layer defects in djust versions prior to 1.1.1 cause attacker-controlled input to be rendered as live markup without proper escaping, resulting in stored or reflected cross-site scripting (XSS). These defects affect various filters and template constructs, including linenumbers, escape, unordered_list, safeseq, render_slot, and linebreaks, allowing untrusted input to execute script code. The vulnerabilities require no special configuration and some are exploitable with typical application usage patterns. The issues are fixed in djust version 1.1.1 and later.

Affected software

PyPIghsa
djust
Affected versions
<1.1.1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/18/2026, 01:27:06 UTC

Technical Analysis

Djust versions before 1.1.1 contain six related template auto-escaping defects that allow attacker-controlled input to bypass escaping and be emitted as live markup, enabling XSS. The defects include: (1) linenumbers filter deferring escaping but suppressed by downstream safe filter; (2) escape filter being a no-op and allowing unsafe chains; (3) unordered_list and safeseq filters granting unsafe output when given strings; (4) safety grants persisting across WebSocket view lifetimes causing unsafe reuse of context variables; (5) custom tag handlers, including djust's own render_slot, emitting raw output without escaping; and (6) linebreaks and linebreaksbr filters requiring |safe to render correctly, which emits unescaped content. These defects are grouped due to shared mitigation—upgrading to 1.1.1—and no single defect is meaningfully actionable alone. The vulnerabilities enable stored or reflected XSS in any djust application rendering untrusted input through affected filters or reusing safe-marked variables.

Potential Impact

The vulnerabilities allow stored or reflected cross-site scripting (XSS) in djust applications that render untrusted input via the affected filters or reuse context variables marked safe. Exploitation requires no special configuration or unusual template constructs for several defects, making the risk significant. XSS can lead to script execution in users' browsers, potentially compromising user sessions, stealing credentials, or performing actions on behalf of users.

Mitigation Recommendations

A fix is available in djust version 1.1.1 and later (including 1.2.0). Users should upgrade to version 1.1.1 or newer to remediate these vulnerabilities. No other mitigation is meaningfully actionable given the nature of the defects and their shared fix. Check the vendor advisory for the latest remediation guidance.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-9395-2g46-rj3f
Osv Schema Version
1.4.0
Ecosystems
["PyPI"]
Database Specific Severity
HIGH

Threat ID: 6aac8dee55bf5e2cf54900ef

Added to database: 09/18/2026, 01:03:42 UTC

Last enriched: 09/18/2026, 01:27:06 UTC

Last updated: 09/18/2026, 01:27:06 UTC

Views: 3

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses