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-06-18T03:56:43.810740831Z
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
{
    "unresolved_ranges": [
        {
            "source": "DESCRIPTION",
            "extracted_events": [
                {
                    "introduced": "2.2"
                },
                {
                    "fixed": "2.2.27"
                },
                {
                    "introduced": "3.2"
                },
                {
                    "fixed": "3.2.12"
                },
                {
                    "introduced": "4.0"
                },
                {
                    "fixed": "4.0.2"
                }
            ]
        }
    ],
    "cna_assigner": "mitre",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/22xxx/CVE-2022-22818.json"
}
References

Affected packages

Git / github.com/django/django

Affected ranges

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

Database specific

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