Skip to content

Fix stored XSS in todo demos by escaping task titles#1

Merged
raphaelbauer merged 1 commit into
mainfrom
fix/demo-stored-xss
Jun 15, 2026
Merged

Fix stored XSS in todo demos by escaping task titles#1
raphaelbauer merged 1 commit into
mainfrom
fix/demo-stored-xss

Conversation

@raphaelbauer

Copy link
Copy Markdown
Owner

Replace new Html(task.title()) with the plain task.title() so user-provided titles route through the template engine's auto-escaping instead of being emitted verbatim. Remove the now-unused Html import in both demos.

Replace new Html(task.title()) with the plain task.title() so user-provided
titles route through the template engine's auto-escaping instead of being
emitted verbatim. Remove the now-unused Html import in both demos.
@raphaelbauer raphaelbauer merged commit 10938dd into main Jun 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant