CVE-2024-22199 Django Template Engine Vulnerable to XSS
MediumCVSS 6.1
EPSS 0.48%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
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.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| gofiber github.com/gofiber/template/django/v3 | < 3.1.9 | 3.1.9 | Fixed |
| gofiber github.com/gofiber/template/django/v3(Go) | < 3.1.9 | 3.1.9 | Fixed |
| gofiber template | = < 3.1.9 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| gofiber github.com/gofiber/template/django/v3(Go) | < 3.1.9 | 3.1.9 |
| gofiber template | = < 3.1.9 | No fix listed |
| gofiber github.com/gofiber/template/django/v3 | < 3.1.9 | 3.1.9 |
References
- https://github.com/gofiber/template/security/advisories/GHSA-4mq2-gc4j-cmw6 mitigation vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/gofiber/template/commit/28cff3ac4d4c117ab25b5396954676d624b6cb46 patch
- github.com product
- github.com