Vulnerability · Published Jan 11, 2024 · Assigned by GitHub_M
CVE-2024-22199Django Template Engine Vulnerable to XSS
Critical 9.3
In plain English
A critical-severity improper input validation in template from gofiber. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 42% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/gofiber/template/django/v3 | 3.1.9 | GHSA-4mq2-gc4j-cmw6 |
| Go | github.com/gofiber/template/django/v3 | 3.1.9 | GO-2024-2461 |
Affected products (as reported)
Weakness: CWE-20, CWE-79, CWE-116 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:N