Skip to content
OpenAdvisories
Medium · 5.3 CVE-2026-55850 EUVD-2026-64046

Element Web: A malicious homeserver can inject HTML in Element Web using its homepage

Published Aug 21, 2026 · Updated Aug 21, 2026 · Assigned by GitHub_M

Description

Element Web is a Matrix web client built using the Matrix React SDK. Prior to 1.12.22, EmbeddedPage in apps/web/src/components/structures/EmbeddedPage.tsx renders homeserver-supplied homepage content through dangerouslySetInnerHTML without passing it through sanitizedHtmlNode. A malicious homeserver can provide crafted HTML that Element Web renders on the homepage; the content security policy prevents JavaScript but not phishing HTML. This issue is fixed in version 1.12.22.

Affected products

VendorProductAffectedFixed
element-hq element-web < 1.12.22 —

References