Python
CVE-2026-34231
MEDIUM
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Impact | The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N) indicates a network-exploitable vulnerability requiring low attack complexity and user interaction (UI:R), with low confidentiality and integrity impact and no availability impact, across scope change. The 6.1 base score reflects moderate real-world risk. The presence of a vendor-released patch (version 0.6.3) and upstream fix commit significantly reduces exposure for patched deployments. No EPSS score is provided, and no CISA KEV status is indicated in the input data. XSS vulnerabilities are routinely exploited opportunistically in production environments, and this one requires only crafting a malicious URL parameter or form input-attack complexity is low. The requirement for user interaction (clicking a link or viewing a crafted page) somewhat constrains automated exploitation but does not eliminate real-world risk given common phishing and social engineering tactics. Organizations using unpatched slippers versions should treat this as a priority fix, particularly if templates render user-controlled data via {% attrs %}. |
| Exploit ScenarioDerived | An attacker discovers a Django application using slippers that renders a user-supplied search query via |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 30, 2026
Cross-site scripting (XSS) in the slippers Django package's {% attrs %} template tag allows unauthenticated remote attackers to inject arbitrary HTML and JavaScript by passing untrusted context variables containing quote characters and event handler attributes. The vulnerability affects templates that pass user-supplied or database-derived values to {% attrs %} without prior escaping. Vendor-released patch version 0.6.3 is available.
RemediationAI
Vendor-released patch: upgrade slippers to version 0.6.3 or later. The fix replaces the unescaped f-string in the attr_string() function with format_html('{}="{}"', key, value) from django.utils.html, which automatically escapes both key and value for safe HTML attribute insertion. Until patching is possible, apply a workaround by sanitizing untrusted values before passing them to {% attrs %} using django.utils.html.escape() in the view layer. See the vendor security advisory at https://github.com/mixxorz/slippers/security/advisories/GHSA-w7rv-gfp4-j9j3 and the fix commit at https://github.com/mixxorz/slippers/commit/16cc4ef4fa8ad2f7aee30798f16c3e7b653423b2 for implementation details.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The slippers package provides a custom Django template tag {% attrs %} implemented as a Node subclass registered via register.tag(). Unlike Django's register.simple_tag(), which automatically applies conditional escaping when autoescape is enabled, custom Node subclasses receive no automatic output sanitization and bear full responsibility for escaping their render() output. The vulnerability exists in the attr_string() function, which constructs HTML attribute strings using an unescaped f-string: f'{key}="{value}"'. When a context variable containing a double quote followed by malicious HTML (such as onmouseover="alert(...)" x=") is passed as a value, the f-string interpolates it directly into the attribute without escaping, allowing attribute context breakout and arbitrary HTML/JavaScript injection. The root cause maps to CWE-79 (Improper Neutralization of Input During Web Page Generation). The affected product is the slippers Python package (CPE: pkg:pip/slippers) used in Django applications.
Know when Python gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Primary rating from Vendor (https://github.com/mixxorz/slippers) · only source for this CVE.
CVSS VectorVendor: https://github.com/mixxorz/slippers
Lifecycle Timeline
2DescriptionCVE.org
Summary
A Cross-site Scripting (XSS) vulnerability exists in the {% attrs %} template tag of the slippers Django package. When a context variable containing untrusted data is passed to {% attrs %}, the value is interpolated into an HTML attribute string without escaping, allowing an attacker to break out of the attribute context and inject arbitrary HTML or JavaScript into the rendered page.
Vulnerability details
Root cause
AttrsNode is a custom Node subclass registered via register.tag(). Unlike register.simple_tag(), which automatically applies conditional_escape() when autoescape is on, custom Node.render() methods receive no automatic escaping and are fully responsible for sanitising their output. attr_string() fails to do this:
def attr_string(key: str, value: Any):
if isinstance(value, bool):
return key if value else ""
key = key.replace("_", "-")
return f'{key}="{value}"'
# value is not escapedAttack scenario
Given a template that uses {% attrs %} with a user-supplied value:
{% load slippers %}
<input {% attrs type placeholder %}>render(request, "search.html", {"placeholder": request.GET.get("q", "")})An attacker crafting a request with q=" onmouseover="alert(document.cookie)" x=" produces:
<input type="text" placeholder="" onmouseover="alert(document.cookie)" x="">Impact
Any template that passes values derived from user input, database content, or other untrusted sources to {% attrs %} is vulnerable. Successful exploitation can lead to session hijacking, credential theft, arbitrary actions on behalf of the victim, and page defacement.
Remediation
Replace the f-string in attr_string() with format_html(), which escapes both key and value:
from django.utils.html import format_html
def attr_string(key: str, value: Any):
if isinstance(value, bool):
return key if value else ""
key = key.replace("_", "-")
return format_html('{}="{}"', key, value)Until a patch is available, sanitise untrusted values before passing them to {% attrs %}, for example with django.utils.html.escape() in the view layer.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Affected Products (CPE)CVE.org
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
GHSA-w7rv-gfp4-j9j3
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB