nday
CVE-2026-125112 GHSA-xjw9-38cr-6372

djust: A template binding inherits a context safety grant it never earned (XSS)

djust-org / djust

Disclosed . Patched: fixed in djust 1.0.10 and djust 1.1.2. None of the four PoC sources lists it. Not in CISA KEV.

tags weakness typeXSS accessnetworkno authentication required ecosystemPyPI
why these tags

nday derives these tags by fixed rules from the facts below; NVD, the CNA and other sources do not assign them. Vocabulary and rules: ~/tags.

XSS
CWE-79, stated by the CNA GitHub_M, NVD, republishing [email protected], and GitHub advisory GHSA-xjw9-38cr-6372
network
AV:N in CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N (CVSS 4.0) from the CNA GitHub_M
no authentication required
PR:N in CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N (CVSS 4.0) from the CNA GitHub_M
PyPI
GHSA-xjw9-38cr-6372: pip packages djust
stage
PAT
disclosed
cvss
2.3 LOW v4.0

Lifecycle

x axis UTC; dot = exact minute, wide bar = date only, hollow = unknown or inferred.
time unknown
DISdisclosed
11-09T22:08Z
PATpatch
djust 1.0.10, djust 1.1.2
ANAanalysis
no record yet
POCPoC
no record yet
ITWexploited
no record yet
KEVKEV
no record yet

Summary

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.

Original text of the CVE record (cvelist), shown as published.

Exploit conditions

What an attack needs, read from the CVSS vector.
Attack vector AV:N
Network: the attacker only needs to reach it over the network
Attack complexity AC:L
Low: no target-specific security measures to get around
Attack requirements AT:P
Present: success depends on specific deployment or execution conditions, such as a race condition, a non-default setting or a position on the network path
Privileges required PR:N
None: no account or authorization needed
User interaction UI:P
Passive: limited, involuntary interaction, such as visiting a page

CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

CVSS 4.0 vector from the CVE record, scored by the CNA GitHub_M.

Event log

+DISdisclosed

CVE record published by GitHub_M. CVSS 2.3, low.

src cvelist · nday , bulk import · raw
{
  "id": 8183,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2026-125112",
  "occurred_at": "2026-11-09T22:08:05.45Z",
  "observed_at": "2026-11-12T14:10:31.286634Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "cvss": {
      "source": "cna",
      "vector": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N",
      "version": "4.0",
      "base_score": 2.3,
      "base_severity": "LOW"
    },
    "ssvc": {
      "timestamp": "2026-11-13T13:30:15.854888Z",
      "automatable": "no",
      "exploitation": "none",
      "technical_impact": "partial"
    },
    "state": "PUBLISHED",
    "date_published": "2026-11-09T22:08:05.450Z",
    "assigner_short_name": "GitHub_M"
  }
}
time unknownsource gave no time
+PATpatch released

The advisory gives fixed versions djust 1.0.10 and djust 1.1.2. Fix commits are linked. Advisory published ; the patch's own release time is not recorded.

src ghsa GHSA-xjw9-38cr-6372 · nday , bulk import · raw
{
  "id": 19069,
  "type": "patch_released",
  "source": "ghsa",
  "url": "https://github.com/advisories/GHSA-xjw9-38cr-6372",
  "occurred_at": null,
  "observed_at": "2026-11-12T15:03:36.174798Z",
  "is_backfill": true,
  "dedupe_key": "GHSA-xjw9-38cr-6372",
  "detail": {
    "cvss": {
      "cvss_v3": {
        "score": 0.0,
        "vector_string": null
      },
      "cvss_v4": {
        "score": 8.7,
        "vector_string": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"
      }
    },
    "cwes": [
      {
        "name": "Improper Neutralization of Input During Web Page Generation",
        "cwe_id": "CWE-79"
      },
      {
        "name": "Improper Encoding or Escaping of Output",
        "cwe_id": "CWE-116"
      }
    ],
    "ghsa_id": "GHSA-xjw9-38cr-6372",
    "packages": [
      {
        "name": "djust",
        "ecosystem": "pip",
        "first_patched_version": "1.0.10",
        "vulnerable_version_range": "< 1.0.10"
      },
      {
        "name": "djust",
        "ecosystem": "pip",
        "first_patched_version": "1.1.2",
        "vulnerable_version_range": ">= 1.1.0, < 1.1.2"
      }
    ],
    "severity": "high",
    "references": [
      "https://github.com/djust-org/djust/security/advisories/GHSA-xjw9-38cr-6372",
      "https://github.com/djust-org/djust/releases/tag/v1.1.2",
      "https://github.com/djust-org/djust/pull/2444",
      "https://github.com/djust-org/djust/commit/06d213dbdd82f5b1c2affe2f869ae88a71809e4a",
      "https://github.com/djust-org/djust/commit/5288e5dbc8d83d8aee8a22a0a7a3a478461c8965",
      "https://github.com/djust-org/djust/releases/tag/v1.0.10",
      "https://github.com/advisories/GHSA-xjw9-38cr-6372"
    ],
    "fix_commit_urls": [
      "https://github.com/djust-org/djust/pull/2444",
      "https://github.com/djust-org/djust/commit/06d213dbdd82f5b1c2affe2f869ae88a71809e4a",
      "https://github.com/djust-org/djust/commit/5288e5dbc8d83d8aee8a22a0a7a3a478461c8965"
    ],
    "github_reviewed_at": "2026-09-17T20:31:48Z",
    "advisory_updated_at": "2026-11-09T22:09:15Z",
    "source_code_location": "https://github.com/djust-org/djust",
    "advisory_published_at": "2026-09-17T20:31:48Z"
  }
}

Report an error

report an error or omission

Something on this page wrong or missing? Tell the editors; if they accept it, this page's revision log says so publicly. Upstream data is not changed.

Researcher discussion

0 researchers mentioned this in the last 7 days

Posts on X by researchers on nday's list that mention this CVE, shown as posted. nday does not check them.

nday has not collected any post on X by listed researchers that mentions this CVE.

Discussion

0 comments

No comments yet.