CVE-2026-39422: Django Response Unescaped Replace Xss

Unescaped data retrieved from a dictionary or caching structure is embedded into the HTTP response. If this data contains malicious JavaScript, it can result in a Cross-Site Scripting (XSS) vulnerability. Ensure you sanitize any dynamically fetched values before interpolating them into HTML structures by using `html.escape()` or an equivalent sanitizer.

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0Python
greprules fetch cve-2026-39422-django-response-unescaped-replace-xss --engine opengrep

Description

Unescaped data retrieved from a dictionary or caching structure is embedded into the HTTP response. If this data contains malicious JavaScript, it can result in a Cross-Site Scripting (XSS) vulnerability. Ensure you sanitize any dynamically fetched values before interpolating them into HTML structures by using `html.escape()` or an equivalent sanitizer.