A cross-site scripting (XSS) flaw was found in Jinja2 due to the xmlattr filter allowing keys with spaces, contrary to XML/HTML attribute standards. If an application accepts user-input keys and renders them for other users, attackers can inject additional attributes, potentially leading to XSS. This misuse of the xmlattr filter enables the injection of arbitrary HTML attributes, bypassing auto-escaping and potentially circumventing attribute validation checks.
0:4.5.5-2.el8ap0:4.5.5-2.el9ap0:3.1.3-1.el9ap0:3.1.3-1.el8ap0:4.2.1-121.el8_9.40:4.2.1-129.el80:2.10.1-4.el8Exploitability
AV:NAC:LPR:NUI:RScope
S:UImpact
C:LI:LA:N5.4/CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N