Centralize output encoding for event read paths

refactor(analytics): centralize output encoding for event read paths
Centralize output encoding for event read pathsec41f4-refactor-centralize-output-encoding-for-event-read-cve-2026-55879refactorcentralize output encoding event read paths

Committed by shekarsiri

commit message
refactor(analytics): centralize output encoding for event read paths

Add a shared sanitizer for event fields/properties and apply it on the
events read APIs; reuse a common HTML-escape helper in the dashboard.

Editor assessment

This commit patches CVE-2026-55879. The subject frames the work as a refactor centralizing output encoding for event read paths, which accurately describes the mechanical change even though the security purpose stays implicit. The two-line body adds that a shared sanitizer for event fields and properties was applied to the read APIs and that the dashboard reuses a common HTML-escape helper. That is enough to see the shape of the change but not the vulnerability it closes, which encoding previously missed, or whether stored events remain affected. Tests and footers are absent. Clear and concise, yet it explains what moved rather than why.

Browse categories

More refactor examples · Back to search