CVE-2024-22195
jinja2 - security update
5.4
MEDIUM
CVSS 3.1
EPSS 0.15%
Description
Jinja is an extensible templating engine. Special placeholders in the template allow writing code similar to Python syntax. It is possible to inject arbitrary HTML attributes into the rendered HTML template, potentially leading to Cross-Site Scripting (XSS). The Jinja `xmlattr` filter can be abused to inject arbitrary HTML attribute keys and values, bypassing the auto escaping mechanism and potentially leading to XSS. It may also be possible to bypass attribute validation checks if they are blacklist-based.
How to fix CVE-2024-22195
To remediate CVE-2024-22195, upgrade the affected package to a fixed version below.
- —upgrade to 3.1.4-r0 or later
- —upgrade to 2.11.3-1+deb11u1 or later
- —upgrade to 2.10-2+deb10u1 or later
- —upgrade to 2.11.3-1+deb11u1 or later
- —upgrade to 3.1.3 or later
Is CVE-2024-22195 being exploited?
Low — EPSS is 0.2%, meaning exploitation activity has not been observed at scale.
Affected packages (5)
- from 0, < 3.1.4-r0
- from 0, < 2.11.3-1+deb11u1
- from 0, < 2.10-2+deb10u1
- from 0, < 2.11.3-1+deb11u1
- from 0, < 3.1.3
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |