The {% debug %} template tag in Django 2.2 before 2.2.27, 3.2 before 3.2.12, and 4.0 before 4.0.2 does not properly encode the current context. This may lead to XSS.
{ "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro", "ubuntu_priority": "medium", "binaries": [ { "binary_version": "1.6.11-0ubuntu1.3+esm4", "binary_name": "python-django" }, { "binary_version": "1.6.11-0ubuntu1.3+esm4", "binary_name": "python-django-doc" } ] }
{ "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro", "ubuntu_priority": "medium", "binaries": [ { "binary_version": "1.8.7-1ubuntu5.15+esm4", "binary_name": "python-django" }, { "binary_version": "1.8.7-1ubuntu5.15+esm4", "binary_name": "python-django-common" }, { "binary_version": "1.8.7-1ubuntu5.15+esm4", "binary_name": "python-django-doc" }, { "binary_version": "1.8.7-1ubuntu5.15+esm4", "binary_name": "python3-django" } ] }
{ "availability": "No subscription required", "ubuntu_priority": "medium", "binaries": [ { "binary_version": "1:1.11.11-1ubuntu1.16", "binary_name": "python-django" }, { "binary_version": "1:1.11.11-1ubuntu1.16", "binary_name": "python-django-common" }, { "binary_version": "1:1.11.11-1ubuntu1.16", "binary_name": "python-django-doc" }, { "binary_version": "1:1.11.11-1ubuntu1.16", "binary_name": "python3-django" } ] }