CVE-2022-22818

Source
https://cve.org/CVERecord?id=CVE-2022-22818
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-22818.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-22818
Aliases
Downstream
Related
Published
2022-02-03T00:00:00Z
Modified
2026-05-28T04:04:24.936215619Z
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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/22xxx/CVE-2022-22818.json",
    "cna_assigner": "mitre",
    "unresolved_ranges": [
        {
            "extracted_events": [
                {
                    "introduced": "2.2"
                },
                {
                    "fixed": "2.2.27"
                },
                {
                    "introduced": "3.2"
                },
                {
                    "fixed": "3.2.12"
                },
                {
                    "introduced": "4.0"
                },
                {
                    "fixed": "4.0.2"
                }
            ],
            "source": "DESCRIPTION"
        }
    ]
}
References

Affected packages

Git / github.com/django/django

Affected ranges

Type
GIT
Repo
https://github.com/django/django
Events
Database specific
{
    "cpe": "cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "2.2"
        },
        {
            "fixed": "2.2.27"
        },
        {
            "introduced": "3.2"
        },
        {
            "fixed": "3.2.12"
        },
        {
            "introduced": "4.0"
        },
        {
            "fixed": "4.0.2"
        }
    ],
    "source": "CPE_RANGE"
}

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-22818.json"