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

- Severity: Critical 9.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.48%, higher than 43% of CVEs (2026-12-01)
- Published: 2024-01-11T16:41:42.000Z
- Modified: 2026-09-10T03:50:04.688Z
- Also known as: GHSA-4mq2-gc4j-cmw6, GO-2024-2461
- Weaknesses: CWE-20, CWE-79, CWE-116
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- gofiber template: < 3.1.9
- github.com/gofiber/template/django/v3 (Go): before 3.1.9
- gofiber django: before 3.1.9

## Every score

- GitHub_M: CVSS:3.1 9.3 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:N`
- GitHub: CVSS:3.1 9.3 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/gofiber/template/security/advisories/GHSA-4mq2-gc4j-cmw6> (mitigation, vendor-advisory, web)
- <https://github.com/gofiber/template/commit/28cff3ac4d4c117ab25b5396954676d624b6cb46> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-22199> (advisory)
- <https://github.com/gofiber/template> (package)

## Sources

- CVE List: [CVE-2024-22199](https://www.cve.org/CVERecord?id=CVE-2024-22199), CVE Terms of Use, modified 2024-11-14
- GitHub Advisory Database: [GHSA-4mq2-gc4j-cmw6](https://github.com/advisories/GHSA-4mq2-gc4j-cmw6), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2024-2461](https://pkg.go.dev/vuln/GO-2024-2461), CC-BY-4.0, modified 2024-05-20
- NVD: [CVE-2024-22199](https://nvd.nist.gov/vuln/detail/CVE-2024-22199), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-22199 · Whole record: https://cve.day/CVE-2024-22199.json · Rebuilt by cve.day 2026-11-25T22:58:36.035Z
