Skip to content

fix(ui): harden live page rendering#163

Merged
XOlegator merged 1 commit into
masterfrom
fix/live-page-xss
May 30, 2026
Merged

fix(ui): harden live page rendering#163
XOlegator merged 1 commit into
masterfrom
fix/live-page-xss

Conversation

@XOlegator

Copy link
Copy Markdown
Contributor

Summary

Harden live page rendering by building table rows with DOM APIs instead of injecting HTML strings.

Why

The previous client-side template rendered request data, including script_name and tags, as raw HTML. That left an XSS surface on the live page.

Change

  • remove the micro_tpl-based row template from live.html.twig
  • create live rows with document.createElement and textContent
  • keep timers links and chart updates working with the same live refresh flow

Validation

  • php bin/console lint:twig templates/live.html.twig

@XOlegator XOlegator merged commit a7a71b1 into master May 30, 2026
4 checks passed
@XOlegator XOlegator deleted the fix/live-page-xss branch May 30, 2026 18:54
This was referenced May 30, 2026
Closed
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