Skip to content
OpenAdvisories
Medium · 5.4 CVE-2023-30609 GHSA-xv83-x443-7rmw

matrix-react-sdk vulnerable to HTML injection in search results via plaintext message highlighting

Published Apr 25, 2023 · Updated Feb 3, 2025 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
matrix-org matrix-react-sdk < 3.71.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Tumbleweed element-web +1 1.11.30-1.1 openSUSE-SU-2024:12895-1, openSUSE-SU-2024:12884-1
ReleasePackageFixed inAdvisory
Alpine v3.24 element-web 1.11.30-r0 —
Alpine v3.23 element-web 1.11.30-r0 —
Alpine v3.22 element-web 1.11.30-r0 —
Alpine v3.21 element-web 1.11.30-r0 —
Alpine v3.20 element-web 1.11.30-r0 —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 element-web 1.11.30-r0 —
Alpine v3.18 element-web 1.11.30-r0 —
Alpine v3.17 riot-web 1.11.30-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm matrix-react-sdk < 3.71.0 3.71.0 GHSA-xv83-x443-7rmw

Advisories 2

References