You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Security] Add input sanitization to prevent XSS attacks #13
backendRelated to FastAPI backendfrontendrelated to react frontendmedium-priorityShould be done but not immediately urgentsecurityrelated to security and authentication
What:
User inputs (todo title, description) should be
sanitized before being saved to the database
and before being displayed on screen.
Why this is important:
Without sanitization, a malicious user could
type JavaScript code in a todo title like:
<script>alert('hacked')</script>
If this gets stored and displayed without
sanitization, it could execute in other
users' browsers (XSS attack).
Expected behavior:
Strip or escape HTML tags from user inputs
Sanitize on both frontend AND backend
Display text as plain text, never as HTML
Technical implementation:
Backend: Use bleach library to sanitize inputs
Frontend: React already escapes by default
but verify no dangerouslySetInnerHTML is used
Hi @niat-web, I'd like to work on this too. I know there are already PRs (#18 and #56) and I don't want to add noise, so I'll only open mine if you're fine with another one.
backendRelated to FastAPI backendfrontendrelated to react frontendmedium-priorityShould be done but not immediately urgentsecurityrelated to security and authentication
Activity
suryaff733 commentedon Oct 14, 2026
Can I work on this?
My approach:
Backend: Add bleach to strip HTML in title/description before saving to DB
Frontend: Verify no dangerouslySetInnerHTML usage
Will submit a PR if this looks good
anandmahadevv commentedon Dec 1, 2026
Working on this issue.
Sidd7arth commentedon Dec 5, 2026
Hi @niat-web, I'd like to work on this too. I know there are already PRs (#18 and #56) and I don't want to add noise, so I'll only open mine if you're fine with another one.