CVE-2024-22199CWE-116CWE-20CWE-79

Django Template Engine Vulnerable to XSS

Critical · published January 11, 2024

CVSS v3.1
9.3
EPSS
0%
Percentile
40.7
In the wild
Unconfirmed
What it is

🚨 A dangerously simple XSS vulnerability lurks in a popular template engine, allowing attackers to inject malicious scripts when users visit impacted web pages! 🔥 Think of this like a restaurant where the chef carelessly adds unknown ingredients to every dish—guests could end up with a food allergy they never knew about! In our digital world, this flaw makes it possible for attackers to slip nasty scripts right into your browser's plate. If exploited, an attacker could execute malicious scripts in the browsers of unsuspecting visitors, potentially leading to stolen data, account takeovers, or widespread malware infections. This could be absolutely devastating for your users and your reputation.

Put simply

Think of this like a restaurant where the chef carelessly adds unknown ingredients to every dish—guests could end up with a food allergy they never knew about! In our digital world, this flaw makes it possible for attackers to slip nasty scripts right into your browser's plate. The vulnerability arises from inadequate sanitization of user-supplied data in the template engine, allowing attackers to inject harmful scripts. This has been addressed by setting the default autoescape feature to `true`, which helps prevent such XSS attacks.

What to do

If exploited, an attacker could execute malicious scripts in the browsers of unsuspecting visitors, potentially leading to stolen data, account takeovers, or widespread malware infections. This could be absolutely devastating for your users and your reputation. To safeguard against this vulnerability, immediately update your Fiber web framework to the latest version where this fix is implemented. Additionally, ensure that all template usage properly handles user inputs with appropriate escaping practices. 🛡️ You've got this! Stay proactive and secure those web applications like the hero you are! 💪✨

The record
Technical detail
CVSS v3.1
9.3 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.00484 · 40.7th percentile
Weaknesses
CWE-116 · Improper Encoding or Escaping of Output; CWE-20 · Improper Input Validation; CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Published
2024-01-11T17:39Z
EPSS history
Timeline
  • 11 JAN 17:39Z
    Django Template Engine Vulnerable to XSS
    cvelistv5