Search covers the description text, product and vendor names and weakness types (also partial words).

CVE-2024-34064
palletsprojects jinja

Score5.4 Medium
CVSS 3.1
Exploit probability (EPSS)0.96%
within the next 30 days
CategoryCross-site scripting (XSS)
Published6 May 2024
Last modified: 17 June 2026

In short

This vulnerability can be exploited remotely over the network, without logging in, if a user clicks a link, opens a file or similar.

Impact is limited: reading confidential data, modifying data.

Weakness type: Cross-site scripting (XSS).

✨ AI commentary

After a short ad, a plain-language commentary on this vulnerability is shown. AI can make mistakes; base decisions on the official sources.

Official description

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.

CVSS: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Weakness: CWE-79 – Cross-site scripting (XSS)

Affected products

VendorProductVersions
palletsprojectsjinja<3.1.4
fedoraprojectfedora39
fedoraprojectfedora40

Sources

Latest in the same category

  • CVE-2026-140097 Critical 9.1
    Vite is a frontend tooling framework for JavaScript. From 4.0.0 until 6.4.6, 7.3.8, 8.1.7, 8.2.5, and 8.3.7 in Vite, and prior to 1.5.1 in vite-plus, a network-exposed development server embeds request-derived module…
    Cross-site scripting (XSS) · 30 November 2026
  • CVE-2026-138277 Low 2.3
    Improper neutralization of input during web page generation ('cross-site scripting') vulnerability in Apache Commons BCEL. This only happens when you're using Class2HTML to generate webpages for…
    Cross-site scripting (XSS) · 30 November 2026
  • CVE-2026-140006 Medium 5.4
    minimatch is a minimal matching utility for converting glob expressions into JavaScript RegExp objects. From 7.4.0 until 11.0.8, minimatch.escape() can produce patterns that do not exclusively match the supplied…
    Cross-site scripting (XSS) · 30 November 2026
  • CVE-2026-139994 Medium 4.7
    React Router is a router for React. From 7.11.0 until 7.18.4 and 8.4.0, react Router's unstable RSC Data mode and RSC Framework mode render redirects containing an attacker-controlled redirect destination into…
    Cross-site scripting (XSS) · 30 November 2026
  • CVE-2026-125083 High 7.6
    The vault-auth plugin in Kong Gateway Enterprise and Kong AI Gateway does not escape the access token in the HashiCorp Vault KV request URL, allowing a Consumer to read older secret versions and authenticate with…
    Cross-site scripting (XSS) · 30 November 2026
  • CVE-2026-139988 Medium 5.1
    Foliovision FV Player 8 through 8.2.1 contains a stored cross-site scripting vulnerability in get_popup_code() that allows authenticated Contributor+ attackers to inject script via the popup and end_action_value…
    Cross-site scripting (XSS) · 30 November 2026