Skip to content
Low 2.3

Cross-Site Scripting (XSS) in djust (GHSA-xjw9-38cr-6372)

CVE-2026-125112 First seen on SecPulse

Summary

Cross-site scripting in djust (GHSA-xjw9-38cr-6372). Risk of unauthorized operations or information disclosure. Exploitable via item. Mitigation: upgrade to 1.1.2 or later.

Auto-generated summary

Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.

A vulnerability tracked as GHSA-xjw9-38cr-6372 has been found in djust.
Attackers can target a specific entry point like item over the network to misuse the product.
Risk of unauthorized operations or information disclosure.
What to do: upgrade djust to 1.1.2 or later.
If unsure, ask your IT team or search "djust GHSA-xjw9-38cr-6372" on the vendor's site.

GHSA-xjw9-38cr-6372 (djust) — CWE-79
Attack surface: item / row / mark_safe / main
Patched: 1.1.2 — apply immediately
Workaround: Before upgrading, avoid reusing a context name for both mark_safe'd content and untrusted input, and avoid rebinding such a name in {% with %}, {% for %}, {% include … with %} or an assign tag.
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.

What is the problem

Cross-site scripting (XSS) (CWE-79) exists in djust. Attackers reach the vulnerable code path via item.

Affected scope

Check the vendor advisory for the affected versions of djust. Attack surface: item / row / mark_safe / main.

Severity

Severity: ?. Risk of unauthorized operations or information disclosure.

How to fix

Update to 1.1.2.

Workaround

Workaround: Before upgrading, avoid reusing a context name for both mark_safe'd content and untrusted input, and avoid rebinding such a name in {% with %}, {% for %}, {% include … with %} or an assign tag.

Detection

Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'djust' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.

Response actions

Concrete steps and command examples for SOC/SRE teams to execute in order

  1. 1
    Identify exposureidentify
    grep -r 'djust' . | grep -v node_modules

    リポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で djust を grep し、稼働しているサービス・バージョンを把握する。

  2. 2
    Apply temporary workaroundmitigate
    Before upgrading, avoid reusing a context name for both `mark_safe`'d content and untrusted input, and avoid rebinding such a name in `{% with %}`, `{% for %}`, `{% include … with %}` or an assign tag.

    パッチが適用されるまでの応急処置として、Before upgrading, avoid reusing a context name for both mark_safe'd content and untrusted input, and avoid rebinding such a name in {% with %}, {% for %}, {% include … with %} or an assign tag. を実施。回避策の副作用 (機能低下) を確認した上で。

  3. 3
    Apply patchpatch
    Upgrade djust to 1.1.2

    ステージング環境で 1.1.2 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。

  4. 4
    Post-deployment verificationverify
    Confirm patched version is live in production

    パッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。

Affected packages

PackageAffected → Fixed
pipdjust
< 1.1.2→ 1.1.2
djust-orgdjust —
PyPIdjust
≥ 1.1.0, < 1.1.2→ 1.1.2
Original description The description as published by the source.

djust provides Phoenix LiveView-style reactive server-side rendering for Django with Rust-powered performance. Prior to versions 1.0.10 and 1.1.2, djust keys context output-safety grants by variable name and fails to revoke a grant when a template bind replaces the value associated with that name. A template using {% with %}, {% for %}, {% include ... with %}, tuple unpacking, or assign tags can therefore rebind a name that previously held mark_safe content and emit the new attacker-controlled value without escaping, including descendant lookups through the rebound name. This can cause stored or reflected cross-site scripting when a victim renders the affected template. This issue is fixed in versions 1.0.10 and 1.1.2.

Source: GitHub Security Advisories (Global) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details