Skip to content
Heist/ feed
Back to feed
Critical

Django Template Engine Vulnerable to XSS

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-22199
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 18:17 UTC · Revision 1

Source evidence

Django Template Engine Vulnerable to XSS

core-osv · Original source

Published 11 Jan 2024, 17:39 UTC

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.

osv:CVE-2024-22199
Complete source record
{
  "id": "bcdbfcc12794dcb2fb56faa0f35c9997ea552a83bffe8514f3008483ee1bfc45",
  "url": "https://osv.dev/vulnerability/CVE-2024-22199",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Django Template Engine Vulnerable to XSS",
    "summary": "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.",
    "evidence": "osv:CVE-2024-22199",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2024-22199",
      "aliases": [
        "CVE-2024-22199",
        "GHSA-4mq2-gc4j-cmw6",
        "GO-2024-2461"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/gofiber/template",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "28cff3ac4d4c117ab25b5396954676d624b6cb46"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "3.1.9"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "28cff3ac4d4c117ab25b5396954676d624b6cb46"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "cpe": "cpe:2.3:a:gofiber:django:*:*:*:*:*:go:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "3.1.9"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "slim/v2.1.5",
            "pug/v2.1.5",
            "mustache/v2.0.8",
            "jet/v2.1.7",
            "html/v2.1.0",
            "handlebars/v2.1.7",
            "django/v3.1.8",
            "amber/v2.1.5",
            "ace/v2.1.5",
            "django/v3.1.7",
            "mustache/v2.0.7",
            "jet/v2.1.6",
            "handlebars/v2.1.6",
            "django/v3.1.6",
            "mustache/v2.0.6",
            "jet/v2.1.5",
            "handlebars/v2.1.5",
            "django/v3.1.5",
            "pug/v2.1.4",
            "mustache/v2.0.5",
            "jet/v2.1.4",
            "html/v2.0.5",
            "handlebars/v2.1.4",
            "django/v3.1.4",
            "amber/v2.1.4",
            "ace/v2.1.4",
            "slim/v2.1.4",
            "v1.8.2",
            "slim/v2.1.3",
            "pug/v2.1.3",
            "mustache/v2.0.4",
            "jet/v2.1.3",
            "html/v2.0.4",
            "handlebars/v2.1.3",
            "django/v3.1.3",
            "amber/v2.1.3",
            "ace/v2.1.3",
            "slim/v2.1.2",
            "pug/v2.1.2",
            "mustache/v2.0.3",
            "jet/v2.1.2",
            "html/v2.0.3",
            "handlebars/v2.1.2",
            "django/v3.1.2",
            "amber/v2.1.2",
            "ace/v2.1.2",
            "slim/v2.1.1",
            "pug/v2.1.1",
            "mustache/v2.0.2",
            "jet/v2.1.1",
            "html/v2.0.2",
            "handlebars/v2.1.1",
            "django/v3.1.1",
            "amber/v2.1.1",
            "ace/v2.1.1",
            "slim/v2.1.0",
            "pug/v2.1.0",
            "mustache/v2.0.1",
            "jet/v2.1.0",
            "html/v2.0.1",
            "handlebars/v2.1.0",
            "django/v3.1.0",
            "amber/v2.1.0",
            "ace/v2.1.0",
            "django/v3.0.0",
            "slim/v2.0.0",
            "pug/v2.0.0",
            "mustache/v2.0.0",
            "jet/v2.0.0",
            "html/v2.0.0",
            "handlebars/v2.0.0",
            "django/v2.0.0",
            "amber/v2.0.0",
            "ace/v2.0.0",
            "v1.8.1",
            "v1.8.0",
            "v1.7.5",
            "v1.7.4",
            "v1.7.3",
            "v1.7.2",
            "v1.7.1",
            "v1.7.0",
            "v1.6.27",
            "v1.6.26",
            "v1.6.25",
            "v1.6.24",
            "v1.6.23",
            "v1.6.22",
            "v1.6.21",
            "v1.6.20",
            "v1.6.19",
            "v1.6.18",
            "v1.6.17",
            "v1.6.16",
            "v1.6.15",
            "v1.6.14",
            "v1.6.13",
            "v1.6.12",
            "v1.6.11",
            "v1.6.10",
            "v1.6.9",
            "v1.6.8",
            "v1.6.7",
            "v1.6.6",
            "v1.6.5",
            "v1.6.4",
            "v1.6.3",
            "v1.6.2",
            "v1.6.1",
            "v1.6.0",
            "v1.5.5",
            "v1.5.4",
            "v1.5.3",
            "v1.5.2",
            "v1.5.1",
            "v1.5.0",
            "v1.4.1",
            "v1.4.0",
            "v1.3.2",
            "v1.3.1",
            "v1.3.0",
            "v1.1.0",
            "v1.0.0",
            "v0.0.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-22199.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:38.349254018Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/22xxx/CVE-2024-22199.json",
        "https://github.com/gofiber/template/security/advisories/GHSA-4mq2-gc4j-cmw6",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-22199",
        "https://github.com/gofiber/template/commit/28cff3ac4d4c117ab25b5396954676d624b6cb46"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-116",
          "CWE-20",
          "CWE-79"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/22xxx/CVE-2024-22199.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-22199",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 505637,
  "published_at": "2024-01-11T17:39:45.745+00:00"
}