Slippers Django Package Cross-Site Scripting Vulnerability in attrs Template Tag

Vulnerability

A Cross-Site Scripting (XSS) vulnerability has been identified in the Slippers Django package, specifically in the {% attrs %} template tag, prior to version 0.6.3. The issue arises because untrusted data passed to the {% attrs %} tag is not properly escaped before being inserted into HTML attribute strings. This flaw allows attackers to inject arbitrary HTML or JavaScript into the rendered page by breaking out of the attribute context. The vulnerability has been patched in version 0.6.3.

Impact

Exploitation of this vulnerability allows for Cross-Site Scripting (XSS) attacks, where an attacker can inject malicious scripts that are executed in the context of the user's browser. This could lead to session hijacking, credential theft, unauthorized actions on behalf of the user, and defacement of the web page.

Reproduction

To reproduce this vulnerability, use a template that includes the {% attrs %} tag with a context variable containing untrusted data. For example, pass a variable from a GET request that includes JavaScript payloads, such as an `onmouseover` event. The injected script will be executed when the attribute is processed by the browser.

Remediation

Users can update to Slippers version 0.6.3, where this vulnerability has been fixed. For those unable to upgrade immediately, it is recommended to sanitize untrusted values before passing them to the {% attrs %} tag, using Django's built-in escaping functions.

Added: Mar 31, 2026, 4:39 PM
Updated: Mar 31, 2026, 4:39 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
1.7
exploitability
7.4
remediation
0.0
relevance
5.0
threat
4.8
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.