CVE-2022-22818
python-django - security update
6.1
MEDIUM
CVSS 3.1
EPSS 0.55%
Description
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.
How to fix CVE-2022-22818
To remediate CVE-2022-22818, upgrade the affected package to a fixed version below.
- Bitnami/django—upgrade to 2.2.27 or later
- —upgrade to 2:2.2.28-1~deb11u1 or later
- —upgrade to 1:1.10.7-2+deb9u15 or later
- —upgrade to 2:2.2.28-1~deb11u1 or later
- —upgrade to 2.2.27 or later
- —upgrade to 2.2.27 or later
Is CVE-2022-22818 being exploited?
Low — EPSS is 0.6%, meaning exploitation activity has not been observed at scale.
Affected packages (6)
- >= 2.2.0, < 2.2.27, >= 3.2.0, < 3.2.12, >= 4.0.0, < 4.0.2
- from 0, < 2:2.2.28-1~deb11u1
- from 0, < 1:1.10.7-2+deb9u15
- from 0, < 2:2.2.28-1~deb11u1
- >= 2.2, < 2.2.27
- >= 2.2, < 2.2.27, >= 3.2, < 3.2.12, >= 4.0, < 4.0.2
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N |
| osv | CVSS 3.1 | MEDIUM6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |