fix(deps): update dependency slippers to v0.6.3 [security]#2008
Open
renovate[bot] wants to merge 1 commit intomainfrom
Open
fix(deps): update dependency slippers to v0.6.3 [security]#2008renovate[bot] wants to merge 1 commit intomainfrom
renovate[bot] wants to merge 1 commit intomainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==0.6.2→==0.6.3GitHub Vulnerability Alerts
CVE-2026-34231
Summary
A Cross-site Scripting (XSS) vulnerability exists in the
{% attrs %}template tag of theslippersDjango 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
AttrsNodeis a customNodesubclass registered viaregister.tag(). Unlikeregister.simple_tag(), which automatically appliesconditional_escape()when autoescape is on, customNode.render()methods receive no automatic escaping and are fully responsible for sanitising their output.attr_string()fails to do this:Attack scenario
Given a template that uses
{% attrs %}with a user-supplied value:An attacker crafting a request with
q=" onmouseover="alert(document.cookie)" x="produces: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()withformat_html(), which escapes both key and value:Until a patch is available, sanitise untrusted values before passing them to
{% attrs %}, for example withdjango.utils.html.escape()in the view layer.Release Notes
mixxorz/slippers (slippers)
v0.6.3Compare Source
What's Changed
attrsTemplate TagFull Changelog: mixxorz/slippers@0.6.2...0.6.3
Configuration
📅 Schedule: Branch creation - "" in timezone America/Toronto, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.