CVE catalog

CVE-2022-22818

python-django: CVE-2022-22818

[CVE catalog]

Severity
Medium · CVSS 6.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Published
Source
[NVD] · [CVE record]
EPSS
3.36% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianpython-djangosid3:5.2.18-1fixed
Debianpython-djangoforky3:5.2.17-2fixed
Debianpython-djangotrixie3:4.2.28-0+deb13u2fixed
Debianpython-djangotrixie-security3:4.2.28-0+deb13u1fixed
Debianpython-djangobookworm3:3.2.25-0+deb12u3fixed
Debianpython-djangobookworm-security3:3.2.25-0+deb12u6fixed
Ubuntupython-djangopro1.7.9-1ubuntu5vulnerable
Ubuntupython-djangopro1.8.5-2ubuntu1vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu1vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu2vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu3vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu4vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.1vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.2vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.4vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.5vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.6vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.7vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.8vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.9vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.10vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.11vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.12vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.13vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.14vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.15vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.15+esm1vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.15+esm3vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.15+esm4fixed
Ubuntupython-django18.041:1.11.4-1ubuntu1vulnerable
Ubuntupython-django18.041:1.11.6-1ubuntu1vulnerable
Ubuntupython-django18.041:1.11.9-1ubuntu1vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1.1vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1.2vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1.3vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1.4vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1.5vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1.6vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1.7vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1.8vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1.9vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1.10vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1.11vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1.12vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1.13vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1.14vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1.15vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1.16fixed
Ubuntupython-django20.041:1.11.22-1ubuntu1vulnerable
Ubuntupython-django20.042:2.2.6-1ubuntu1vulnerable
Ubuntupython-django20.042:2.2.9-2ubuntu1vulnerable
Ubuntupython-django20.042:2.2.10-1vulnerable
Ubuntupython-django20.042:2.2.10-1ubuntu1vulnerable
Ubuntupython-django20.042:2.2.11-1vulnerable
Ubuntupython-django20.042:2.2.12-1vulnerable
Ubuntupython-django20.042:2.2.12-1ubuntu0.1vulnerable
Ubuntupython-django20.042:2.2.12-1ubuntu0.2vulnerable
Ubuntupython-django20.042:2.2.12-1ubuntu0.3vulnerable
Ubuntupython-django20.042:2.2.12-1ubuntu0.4vulnerable
Ubuntupython-django20.042:2.2.12-1ubuntu0.5vulnerable
Ubuntupython-django20.042:2.2.12-1ubuntu0.6vulnerable
Ubuntupython-django20.042:2.2.12-1ubuntu0.7vulnerable
Ubuntupython-django20.042:2.2.12-1ubuntu0.8vulnerable
Ubuntupython-django20.042:2.2.12-1ubuntu0.9vulnerable
Ubuntupython-django20.042:2.2.12-1ubuntu0.10fixed
Susepython-Django1openstack cloud 91.11.29-3.37.1fixed
Susevenv-openstack-barbicanopenstack cloud 97.0.1~dev24-3.30.1fixed
Susevenv-openstack-cinderopenstack cloud 913.0.10~dev23-3.33.1fixed
Susevenv-openstack-designateopenstack cloud 97.0.2~dev2-3.30.1fixed
Susevenv-openstack-glanceopenstack cloud 917.0.1~dev30-3.28.1fixed
Susevenv-openstack-heatopenstack cloud 911.0.4~dev4-3.30.1fixed
Susevenv-openstack-horizonopenstack cloud 914.1.1~dev11-4.34.2fixed
Susevenv-openstack-ironicopenstack cloud 911.1.5~dev17-4.28.1fixed
Susevenv-openstack-keystoneopenstack cloud 914.2.1~dev7-3.31.1fixed
Susevenv-openstack-magnumopenstack cloud 97.2.1~dev1-4.30.1fixed
Susevenv-openstack-manilaopenstack cloud 97.4.2~dev60-3.36.1fixed
Susevenv-openstack-monascaopenstack cloud 92.7.1~dev10-3.32.1fixed
Susevenv-openstack-monasca-ceilometeropenstack cloud 91.8.2~dev3-3.30.1fixed
Susevenv-openstack-neutronopenstack cloud 913.0.8~dev164-6.34.1fixed
Susevenv-openstack-novaopenstack cloud 918.3.1~dev91-3.34.1fixed
Susevenv-openstack-octaviaopenstack cloud 93.2.3~dev7-4.30.1fixed
Susevenv-openstack-saharaopenstack cloud 99.0.2~dev15-3.30.1fixed
Susevenv-openstack-swiftopenstack cloud 92.19.2~dev48-2.25.1fixed
Susepython-Django1openstack cloud crowbar 91.11.29-3.37.1fixed
Opensusepython-Djangotumbleweed4.0.2-1.1fixed
Ubuntupython-djangopro1.7.9-1ubuntu5vulnerable
Ubuntupython-djangopro1.8.5-2ubuntu1vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu1vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu2vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu3vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu4vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.1vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.2vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.4vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.5vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.6vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.7vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.8vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.9vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.10vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.11vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.12vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.13vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.14vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.15vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.15+esm1vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.15+esm3vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.15+esm4fixed
Ubuntupython-django18.041:1.11.4-1ubuntu1vulnerable
Ubuntupython-django18.041:1.11.6-1ubuntu1vulnerable
Ubuntupython-django18.041:1.11.9-1ubuntu1vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1.1vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1.2vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1.3vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1.4vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1.5vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1.6vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1.7vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1.8vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1.9vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1.10vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1.11vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1.12vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1.13vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1.14vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1.15vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1.16fixed
Ubuntupython-django20.041:1.11.22-1ubuntu1vulnerable
Ubuntupython-django20.042:2.2.6-1ubuntu1vulnerable
Ubuntupython-django20.042:2.2.9-2ubuntu1vulnerable
Ubuntupython-django20.042:2.2.10-1vulnerable
Ubuntupython-django20.042:2.2.10-1ubuntu1vulnerable
Ubuntupython-django20.042:2.2.11-1vulnerable
Ubuntupython-django20.042:2.2.12-1vulnerable
Ubuntupython-django20.042:2.2.12-1ubuntu0.1vulnerable
Ubuntupython-django20.042:2.2.12-1ubuntu0.2vulnerable
Ubuntupython-django20.042:2.2.12-1ubuntu0.3vulnerable
Ubuntupython-django20.042:2.2.12-1ubuntu0.4vulnerable
Ubuntupython-django20.042:2.2.12-1ubuntu0.5vulnerable
Ubuntupython-django20.042:2.2.12-1ubuntu0.6vulnerable
Ubuntupython-django20.042:2.2.12-1ubuntu0.7vulnerable
Ubuntupython-django20.042:2.2.12-1ubuntu0.8vulnerable
Ubuntupython-django20.042:2.2.12-1ubuntu0.9vulnerable
Ubuntupython-django20.042:2.2.12-1ubuntu0.10fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianpython-djangosourcesid2:3.2.12-1not yet assignedNot reported[1004752]
Debianpython-djangosourceforky2:3.2.12-1not yet assignedNot reported[1004752]
Debianpython-djangosourcetrixie2:3.2.12-1not yet assignedNot reported[1004752]
Debianpython-djangosourcebookworm2:3.2.12-1not yet assignedNot reported[1004752]
Ubuntupython-djangodebpro1.8.7-1ubuntu5.15+esm4Not reportedUSN-5269-2Not reported
Ubuntupython-djangodeb18.041:1.11.11-1ubuntu1.16Not reportedUSN-5269-1Not reported
Ubuntupython-djangodeb20.042:2.2.12-1ubuntu0.10Not reportedUSN-5269-1Not reported
Susepython-Django1rpmopenstack cloud 91.11.29-3.37.1Not reportedSUSE-SU-2022:0285-1Not reported
Susevenv-openstack-barbicanrpmopenstack cloud 97.0.1~dev24-3.30.1Not reportedSUSE-SU-2022:0285-1Not reported
Susevenv-openstack-cinderrpmopenstack cloud 913.0.10~dev23-3.33.1Not reportedSUSE-SU-2022:0285-1Not reported
Susevenv-openstack-designaterpmopenstack cloud 97.0.2~dev2-3.30.1Not reportedSUSE-SU-2022:0285-1Not reported
Susevenv-openstack-glancerpmopenstack cloud 917.0.1~dev30-3.28.1Not reportedSUSE-SU-2022:0285-1Not reported
Susevenv-openstack-heatrpmopenstack cloud 911.0.4~dev4-3.30.1Not reportedSUSE-SU-2022:0285-1Not reported
Susevenv-openstack-horizonrpmopenstack cloud 914.1.1~dev11-4.34.2Not reportedSUSE-SU-2022:0285-1Not reported
Susevenv-openstack-ironicrpmopenstack cloud 911.1.5~dev17-4.28.1Not reportedSUSE-SU-2022:0285-1Not reported
Susevenv-openstack-keystonerpmopenstack cloud 914.2.1~dev7-3.31.1Not reportedSUSE-SU-2022:0285-1Not reported
Susevenv-openstack-magnumrpmopenstack cloud 97.2.1~dev1-4.30.1Not reportedSUSE-SU-2022:0285-1Not reported
Susevenv-openstack-manilarpmopenstack cloud 97.4.2~dev60-3.36.1Not reportedSUSE-SU-2022:0285-1Not reported
Susevenv-openstack-monascarpmopenstack cloud 92.7.1~dev10-3.32.1Not reportedSUSE-SU-2022:0285-1Not reported
Susevenv-openstack-monasca-ceilometerrpmopenstack cloud 91.8.2~dev3-3.30.1Not reportedSUSE-SU-2022:0285-1Not reported
Susevenv-openstack-neutronrpmopenstack cloud 913.0.8~dev164-6.34.1Not reportedSUSE-SU-2022:0285-1Not reported
Susevenv-openstack-novarpmopenstack cloud 918.3.1~dev91-3.34.1Not reportedSUSE-SU-2022:0285-1Not reported
Susevenv-openstack-octaviarpmopenstack cloud 93.2.3~dev7-4.30.1Not reportedSUSE-SU-2022:0285-1Not reported
Susevenv-openstack-sahararpmopenstack cloud 99.0.2~dev15-3.30.1Not reportedSUSE-SU-2022:0285-1Not reported
Susevenv-openstack-swiftrpmopenstack cloud 92.19.2~dev48-2.25.1Not reportedSUSE-SU-2022:0285-1Not reported
Susepython-Django1rpmopenstack cloud crowbar 91.11.29-3.37.1Not reportedSUSE-SU-2022:0285-1Not reported
Opensusepython-Djangorpmtumbleweed4.0.2-1.1Not reportedOPENSUSE-SU-2024:11804-1Not reported
Ubuntupython-djangodebpro1.8.7-1ubuntu5.15+esm4Not reportedUBUNTU-CVE-2022-22818Not reported
Ubuntupython-djangodeb18.041:1.11.11-1ubuntu1.16Not reportedUBUNTU-CVE-2022-22818Not reported
Ubuntupython-djangodeb20.042:2.2.12-1ubuntu0.10Not reportedUBUNTU-CVE-2022-22818Not reported

[Debian bug #1004752]

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

[Debian 12 (Bookworm)]

  • Source package: [python-django]

    Details (6)
    • 3:3.2.25-0+deb12u3 · all · bookworm

      Fixed · Fixed: 2:3.2.12-1

      dsa · python-django · debian · bookworm

    • 3:3.2.25-0+deb12u3 · all · bookworm

      Fixed · Fixed: 2:3.2.12-1

      dsa · python-django · debian · bookworm

    • 3:4.2.21-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 2:3.2.12-1

      dsa · python-django · debian · bookworm

    • 3:4.2.21-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 2:3.2.12-1

      dsa · python-django · debian · bookworm

    • 3:3.2.25-0+deb12u4 · all · bookworm-security

      Fixed · Fixed: 2:3.2.12-1

      dsa · python-django · debian · bookworm

    • 3:3.2.25-0+deb12u4 · all · bookworm-security

      Fixed · Fixed: 2:3.2.12-1

      dsa · python-django · debian · bookworm

  • Source package: [python-django]

    Details (6)
    • 3:3.2.25-0+deb12u3 · all · bookworm

      Fixed · Fixed: 2:3.2.12-1

      dsa · python-django · debian · bookworm

    • 3:3.2.25-0+deb12u3 · all · bookworm

      Fixed · Fixed: 2:3.2.12-1

      dsa · python-django · debian · bookworm

    • 3:4.2.21-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 2:3.2.12-1

      dsa · python-django · debian · bookworm

    • 3:4.2.21-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 2:3.2.12-1

      dsa · python-django · debian · bookworm

    • 3:3.2.25-0+deb12u4 · all · bookworm-security

      Fixed · Fixed: 2:3.2.12-1

      dsa · python-django · debian · bookworm

    • 3:3.2.25-0+deb12u4 · all · bookworm-security

      Fixed · Fixed: 2:3.2.12-1

      dsa · python-django · debian · bookworm

[openSUSE Tumbleweed]

  • Source package: [python-Django]

    Details (1)
    • 6.0.8-1.1 · noarch · tumbleweed

      Unknown · Fixed: 4.0.2-1.1

      Version impact unknown

      dsa · python-Django · opensuse · tumbleweed

  • Source package: [python-Django]

    Details (1)
    • 6.0.8-1.1 · noarch · tumbleweed

      Unknown · Fixed: 4.0.2-1.1

      Version impact unknown

      dsa · python-Django · opensuse · tumbleweed

Observed:

References