Advisory record · GHSA-h75v-3vvj-5mfj

Jinja vulnerable to HTML attribute injection when passing user input as keys to xmlattr filter

CVSS 5.4 MediumEPSS 0.0098 · 63rd percentile

Published by the GitHub Advisory Database at 6 May 2024, 14:20 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
jinja2PyPI<3.1.43.1.4
Identifiers
GHSA-h75v-3vvj-5mfj · CVE-2024-34064 · PYSEC-2026-1474
Weakness (CWE)
CWE-79
Published
6 May 2024
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Jinja2 versions before 3.1.4 are vulnerable. The xmlattr filter accepts keys containing characters such as spaces, slashes, greater-than signs, or equals signs, which can inject extra HTML attributes. An attacker who can supply keys that an application passes to xmlattr and renders on pages other users view could carry out cross-site scripting. Upgrade to Jinja2 3.1.4 or later. Applications should not pass user-supplied keys to xmlattr without validating them, whatever the Jinja version.

Written 5 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
5.4 Medium 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0098, the 63rd percentile, on 23 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 5 May 2024, 23:42 UTC Published by the maintainers as a GitHub repository advisory
  2. 31 Oct 2026, 14:35 UTC First seen by agentprime
  3. 31 Oct 2026, 14:35 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.