What’s Vulnerable › Vulnerabilities
CVE-2024-22199: Django Template Engine Vulnerable to XSS
- Severity: medium (CVSS 6.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.5% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-01-11 · updated 2026-06-17
- Weakness: CWE-20
Description
This package provides universal methods to use multiple template engines with the Fiber web framework using the Views interface. This vulnerability specifically impacts web applications that render user-supplied data through this template engine, potentially leading to the execution of malicious scripts in users' browsers when visiting affected web pages. The vulnerability has been addressed, the template engine now defaults to having autoescape set to `true`, effectively mitigating the risk of XSS attacks.
Affected products
- gofiber Django: before 3.1.9 — fixed in 3.1.9
How to fix
Upgrade to a fixed version: gofiber Django 3.1.9. Check the vendor advisory for mitigations.
References
- https://github.com/gofiber/template/commit/28cff3ac4d4c117ab25b5396954676d624b6cb46
- https://github.com/gofiber/template/security/advisories/GHSA-4mq2-gc4j-cmw6
- https://github.com/gofiber/template/commit/28cff3ac4d4c117ab25b5396954676d624b6cb46
- https://github.com/gofiber/template/security/advisories/GHSA-4mq2-gc4j-cmw6
Get alerted when CVE-2024-22199 or the next vulnerability affects your stack