Skip to main content

Python CVE-2026-34231

MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-03-30 https://github.com/mixxorz/slippers GHSA-w7rv-gfp4-j9j3
6.1
CVSS 3.1 · Vendor: https://github.com/mixxorz/slippers
View

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 {% attrs %} in a template (e.g., <input {% attrs type placeholder %} with placeholder=request.GET.get('q', '')). The attacker crafts a malicious URL with the query parameter q=" onmouseover="alert(document.cookie)" x=", causing the template to render <input type="text" placeholder="" onmouseover="alert(document.cookie)" x="">. When the victim visits the crafted URL or is redirected to it via a phishing email, the JavaScript executes in the victim's browser with the victim's session cookies, enabling session hijacking or credential theft. No public exploit code is referenced in the input data, but the attack requires only URL crafting and standard browser functionality.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

pypi slippers fix: 0.6.3

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

Vendor (https://github.com/mixxorz/slippers) PRIMARY 6.1 MEDIUM
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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

2
Patch released
Mar 30, 2026 - 17:36 nvd
Patch available
CVE Published
Mar 30, 2026 - 17:20 nvd
MEDIUM 6.1

DescriptionCVE.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:

python
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 escaped

Attack scenario

Given a template that uses {% attrs %} with a user-supplied value:

django
{% load slippers %}
<input {% attrs type placeholder %}>
python
render(request, "search.html", {"placeholder": request.GET.get("q", "")})

An attacker crafting a request with q=" onmouseover="alert(document.cookie)" x=" produces:

html
<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:

python
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

EPSS Score
0.0%
Top 92% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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

pkg:pip/slippers

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

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

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy