{"cve":"CVE-2024-22195","nvd":{"published":"2024-01-11T03:15:11.200","modified":"2026-06-17T07:10:54.907","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1},"cwes":["CWE-79"],"references":["https://github.com/pallets/jinja/releases/tag/3.1.3","https://github.com/pallets/jinja/security/advisories/GHSA-h5c8-rqwp-cp95","https://lists.debian.org/debian-lts-announce/2024/01/msg00010.html","https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5XCWZD464AJJJUBOO7CMPXQ4ROBC6JX2/","https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DELCVUUYX75I5K4Q5WMJG4MUZJA6VAIP/"],"products":["palletsprojects:jinja"],"source":"nvd","synced_at":"2026-10-19T21:43:38.875533635+00:00"},"epss":{"cve":"CVE-2024-22195","score":0.00892,"percentile":0.59434,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-h5c8-rqwp-cp95","url":"https://osv.dev/vulnerability/GHSA-h5c8-rqwp-cp95","summary":"Jinja vulnerable to HTML attribute injection when passing user input as keys to xmlattr filter","modified":"2026-09-10T03:50:00.236017440Z","packages":[{"ecosystem":"PyPI","name":"jinja2","purl":"pkg:pypi/jinja2","ranges":["<3.1.3"],"fixed":["3.1.3"]}]},{"id":"PYSEC-2026-1473","url":"https://osv.dev/vulnerability/PYSEC-2026-1473","summary":"Jinja vulnerable to HTML attribute injection when passing user input as keys to xmlattr filter","modified":"2026-07-07T17:46:13.853151947Z","packages":[{"ecosystem":"PyPI","name":"jinja2","purl":"pkg:pypi/jinja2","ranges":["<3.1.3"],"fixed":["3.1.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}