CVE-2022-22818

Source
https://cve.org/CVERecord?id=CVE-2022-22818
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-22818.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-22818
Aliases
Downstream
Related
Published
2022-02-03T02:15:07.580Z
Modified
2026-03-23T05:02:51.188183497Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/django/django

Affected ranges

Type
GIT
Repo
https://github.com/django/django
Events
Database specific
{
    "versions": [
        {
            "introduced": "2.2"
        },
        {
            "fixed": "2.2.27"
        },
        {
            "introduced": "3.2"
        },
        {
            "fixed": "3.2.12"
        },
        {
            "introduced": "4.0"
        },
        {
            "fixed": "4.0.2"
        }
    ]
}

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-22818.json"
unresolved_ranges
[
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "35"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "11.0"
            }
        ]
    }
]