Files
tinyauth/validation/oidc_whoami.py
Olivier Dumont 5b5799ab62 Fix XSS vulnerability: Escape user claims in HTML output
User claims from ID tokens (username, name, email) were directly
interpolated into HTML without escaping, allowing XSS attacks if
malicious content was present in claims.

This fix:
- Imports html module for escaping
- Escapes all user-controlled data before rendering in HTML
- Escapes JSON output in pre tags as well
- Prevents execution of malicious scripts in browser
2025-12-30 12:46:03 +01:00

11 KiB