Alpine: multiple py3-jinja2 packages: security update to 3.1.4-r0

medium Tenable Cloud Security Plugin ID 424382

Description

There are packages installed that are affected by multiple vulnerabilities referenced in the following CVEs:

- 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.
(CVE-2024-22195)

- Jinja is an extensible templating engine. The `xmlattr` filter in affected versions of Jinja accepts keys
containing non-attribute characters. XML/HTML attributes cannot contain spaces, `/`, `>`, or `=`, as each
would then be interpreted as starting a separate attribute. If an application accepts keys (as opposed to
only values) as user input, and renders these in pages that other users see as well, an attacker could use
this to inject other attributes and perform XSS. The fix for CVE-2024-22195 only addressed spaces but not
other characters. Accepting keys as user input is now explicitly considered an unintended use case of the
`xmlattr` filter, and code that does so without otherwise validating the input should be flagged as
insecure, regardless of Jinja version. Accepting _values_ as user input continues to be safe. This
vulnerability is fixed in 3.1.4. (CVE-2024-34064)

See Also

https://security.alpinelinux.org/vuln/CVE-2024-22195

https://security.alpinelinux.org/vuln/CVE-2024-34064

Plugin Details

Severity: Medium

ID: 424382

Version: Revision 1.21

Type: Local

Published: 4/4/2025

Updated: 6/29/2026

Supported Sensors: Agentless Assessment, Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Low

Score: 2.3

Percentile: 9.36

CVSS v2

Risk Factor: Medium

Base Score: 6.4

Temporal Score: 4.7

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:N

CVSS Score Source: CVE-2024-22195

CVSS v3

Risk Factor: Medium

Base Score: 6.1

Temporal Score: 5.3

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

Exploit Ease: No known exploits are available

Vulnerability Publication Date: 1/11/2024

Reference Information

CVE: CVE-2024-22195, CVE-2024-34064