{"id":"CVE-2026-125112","state":"PUBLISHED","title":"djust: A template binding inherits a context safety grant it never earned (XSS)","description":"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.","publishedAt":"2026-11-09T22:08:05.450Z","updatedAt":"2026-11-09T22:08:05.450Z","severity":{"score":2.3,"label":"Low","version":"4.0","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","source":"GitHub_M"},"assigner":"GitHub_M","products":["djust-org djust"],"affected":[{"vendor":"djust-org","product":"djust","versions":[{"version":"< 1.0.10","status":"affected"},{"version":">= 1.1.0, < 1.1.2","status":"affected"}]}],"references":["https://github.com/djust-org/djust/security/advisories/GHSA-xjw9-38cr-6372","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/djust-org/djust/releases/tag/v1.1.2"],"weaknesses":["CWE-79","CWE-116"],"ingestedAt":"2026-11-09T22:14:06.228Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/125xxx/CVE-2026-125112.json","commit":"c9a6fe5e0ec6065765766582c6238d8d696001a1","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-125112","state":"PUBLISHED","datePublished":"2026-11-09T22:08:05.450Z","dateUpdated":"2026-11-09T22:08:05.450Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-11-09T17:45:35.936Z"},"containers":{"cna":{"title":"djust: A template binding inherits a context safety grant it never earned (XSS)","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"djust-org","product":"djust","versions":[{"version":"< 1.0.10","status":"affected"},{"version":">= 1.1.0, < 1.1.2","status":"affected"}]}],"references":[{"url":"https://github.com/djust-org/djust/security/advisories/GHSA-xjw9-38cr-6372","name":"https://github.com/djust-org/djust/security/advisories/GHSA-xjw9-38cr-6372","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/djust-org/djust/pull/2444","name":"https://github.com/djust-org/djust/pull/2444","tags":["x_refsource_MISC"]},{"url":"https://github.com/djust-org/djust/commit/06d213dbdd82f5b1c2affe2f869ae88a71809e4a","name":"https://github.com/djust-org/djust/commit/06d213dbdd82f5b1c2affe2f869ae88a71809e4a","tags":["x_refsource_MISC"]},{"url":"https://github.com/djust-org/djust/commit/5288e5dbc8d83d8aee8a22a0a7a3a478461c8965","name":"https://github.com/djust-org/djust/commit/5288e5dbc8d83d8aee8a22a0a7a3a478461c8965","tags":["x_refsource_MISC"]},{"url":"https://github.com/djust-org/djust/releases/tag/v1.0.10","name":"https://github.com/djust-org/djust/releases/tag/v1.0.10","tags":["x_refsource_MISC"]},{"url":"https://github.com/djust-org/djust/releases/tag/v1.1.2","name":"https://github.com/djust-org/djust/releases/tag/v1.1.2","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"PRESENT","privilegesRequired":"NONE","userInteraction":"PASSIVE","vulnConfidentialityImpact":"LOW","vulnIntegrityImpact":"LOW","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":2.3,"baseSeverity":"LOW","vectorString":"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"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","lang":"en","description":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-116","lang":"en","description":"CWE-116: Improper Encoding or Escaping of Output","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-11-09T22:08:05.450Z"},"source":{"advisory":"GHSA-xjw9-38cr-6372","discovery":"UNKNOWN"}}}}}