Description
matrix-react-sdk is a react-based SDK for inserting a Matrix chat/VoIP client into a web page. Prior to version 3.71.0, plain text messages containing HTML tags are rendered as HTML in the search results. To exploit this, an attacker needs to trick a user into searching for a specific message containing an HTML injection payload. No cross-site scripting attack is possible due to the hardcoded content security policy. Version 3.71.0 of the SDK patches over the issue. As a workaround, restarting the client will clear the HTML injection.
Remediation
References
https://github.com/matrix-org/matrix-react-sdk/commit/bf182bc94556849d7acdfa0e5fdea2aa129ea826
https://github.com/matrix-org/matrix-react-sdk/releases/tag/v3.71.0
https://github.com/matrix-org/matrix-react-sdk/security/advisories/GHSA-xv83-x443-7rmw
Related Vulnerabilities
CVE-2018-3721 Vulnerability in maven package org.webjars:lodash
CVE-2021-32850 Vulnerability in npm package @claviska/jquery-minicolors
CVE-2022-31023 Vulnerability in maven package com.typesafe.play:play_2.13
CVE-2022-23510 Vulnerability in npm package @cubejs-backend/api-gateway
CVE-2023-26049 Vulnerability in maven package org.eclipse.jetty:jetty-http