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.
Published: 2026-08-21
Score: 5.3 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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 yet.

History

Fri, 21 Aug 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Fri, 21 Aug 2026 19:00:00 +0000

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'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-21T19:54:55.604Z

Reserved: 2026-06-17T16:44:40.994Z

Link: CVE-2026-55850

cve-icon Vulnrichment

Updated: 2026-08-21T19:54:50.253Z

cve-icon NVD

Status : Received

Published: 2026-08-21T19:17:04.230

Modified: 2026-08-21T20:16:37.780

Link: CVE-2026-55850

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-21T20:30:07Z

Weaknesses
  • CWE-79

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