CVE-2024-22199: Django Template Engine Vulnerable to XSS
Vulnerability summary
CVE-2024-22199 is a critical (CVSS 9.3) Improper Input Validation vulnerability in gofiber django. EPSS estimates a 0.48% chance of exploitation in the next 30 days, higher than 40.7% of scored vulnerabilities.
Timeline
- 11-01-2024PublishedVulnerability first disclosed.
- 14-11-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · GoEcosystem advisory · calculated9.3CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:N
- NVDNIST6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NDiffers
EPSS trend
Probability
0.48%
Chance of exploitation in the next 30 days
Percentile
41%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.48% on 22-09-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-20Improper Input ValidationThe product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.
- CWE-79Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
- CWE-116Improper Encoding or Escaping of OutputThe product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. As a result, the intended structure of the message is not preserved.
Affected systems
2 vendors · 3 products
References
4 links- github.com/gofiber/template/security/advisories/GHSA-4mq2-gc4j-cmw6X Refsource CONFIRMWEBMitigationVendor Advisory
- github.com/gofiber/template/commit/28cff3ac4d4c117ab25b5396954676d624b6cb46X Refsource MISCWEBFIXPatch
- github.com/gofiber/templatePACKAGE