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.

Severity (CVSS 3.1)9.3Critical
Exploit odds (30 days)0.5%top 58.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Gogithub.com/gofiber/template/django/v33.1.9GHSA-4mq2-gc4j-cmw6
Gogithub.com/gofiber/template/django/v33.1.9GO-2024-2461

Affected products (as reported)

VendorProductVersions
gofiber template < 3.1.9

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

References