CRITICAL🇵🇱 Wersja polska

CVE-2024-22199

CVSS 9.3v3.1pub. 2024-01-11upd. 2024-11-21

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.

🤖 AI Analysis
How it works

The vulnerability results from the lack of default autoescape mechanism enablement in the Django template engine integrated with the Fiber framework (gofiber/template package). When the application passes user-supplied input data to a template, it is rendered without sanitization, allowing arbitrary JavaScript code to be embedded and executed in the victim's browser context. The fix involves setting the autoescape option to true as the default template engine configuration.

Impact

An attacker can execute malicious JavaScript code in the browser of another user visiting the vulnerable site, which may lead to session hijacking, credential theft, or further attacks on application users.

Mitigation & patch

The gofiber/template package should be updated to a version containing commit 28cff3ac4d4c117ab25b5396954676d624b6cb46, which enables autoescape by default. Additionally, it is recommended to audit the application code for rendering of untrusted user input in templates.

Who is affected

Web applications using the gofiber/template package (Django template engine for the Fiber framework) that render user-supplied data — versions indicated in the manufacturer's references

Analysis generated by Claude AI (Anthropic) based on NVD data. Always verify with vendor.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:N
  • Gofiber Django

    APP
    Gofiber
    < 3.1.9
🔵
CHECK WITH VENDOR
No clear patch data available. Check vendor references.
Tags
XSS
CWE
References

Related vulnerabilities

CVE-2025-66630CRITICAL9.2PL ✓same vendor

Przewidywalne UUID w Fiber v2 — podatność na generowanie słabych identyfikatorów

CVE-2025-66565CRITICAL9.3PL ✓same vendor

Gofiber Utils: przewidywalne UUID przy awarii generatora losowości

CVE-2024-38513CRITICAL10.0PL ✓same vendor

Session Fixation w middleware sesji GoFiber Fiber (wersje < 2.52.5)

CVE-2024-25124CRITICAL9.4PL ✓same vendor

Gofiber Fiber: Niebezpieczna konfiguracja CORS middleware (wildcard + credentials)

CVE-2023-45128CRITICAL10.0PL ✓same vendor

CSRF w Gofiber Fiber — wstrzyknięcie wartości i fałszowanie żądań