CVE-2026-55850

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

Published Aug 21, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Element Web renders content supplied by a homeserver’s homepage through the EmbeddedPage component using dangerouslySetInnerHTML. Because this content is not passed through a sanitization routine, an attacker who controls a Matrix homeserver can supply crafted HTML that Element Web will display unmodified. The browser’s content‑security policy prevents JavaScript execution, but the injected markup can still be used for phishing or other client‑side attacks, constituting a client‑side cross‑site scripting vulnerability that can lead to credential theft or social‑engineering exploitation.

Affected Systems

Element Web from Element HQ, versions prior to 1.12.22. Version 1.12.22 and later include the security fix.

Risk and Exploitability

The CVSS score is 5.3, giving the vulnerability a medium severity. EPSS data is not available, and the vulnerability is not listed in the CISA KEV catalog. An attacker must control a homeserver that a customer uses; once the client loads that server’s homepage, the unsanitized HTML is rendered, allowing the attacker to present phishing pages or other malicious content. This makes the attack vector local to the homeserver but potentially impacting any user who accesses the compromised server via Element Web.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Element Web to version 1.12.22 or later to remove the unsanitized rendering path.
  • If an upgrade cannot be performed immediately, disable the EmbeddedPage homepage feature or configure Element Web to use a static, trusted homepage.
  • Ensure that any HTML content served by the homeserver for the homepage is sanitized or replace it with a known safe page to prevent unsanitized rendering.

Generated by OpenCVE AI on August 21, 2026 at 20:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Element-hq
Element-hq element-web
Vendors & Products Element-hq
Element-hq element-web
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Element Web: A malicious homeserver can inject HTML in Element Web using its homepage
Weaknesses CWE-79
References
Metrics cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 21, 2026, 7:54 PM
Reserved
Jun 17, 2026, 4:44 PM
Status
Deferred
Published
Aug 21, 2026, 7:17 PM
Modified
Oct 14, 2026, 7:10 PM