Vulnerability · Published Apr 25, 2023 · Assigned by GitHub_M

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

Medium 5.4

In plain English

A medium-severity injection in matrix-react-sdk from matrix-org. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 50% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.4Medium
Exploit odds (30 days)0.6%top 50.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20element-web1.11.30-r0ALPINE-CVE-2023-30609
Alpine:v3.21element-web1.11.30-r0ALPINE-CVE-2023-30609
Alpine:v3.22element-web1.11.30-r0ALPINE-CVE-2023-30609
Alpine:v3.23element-web1.11.30-r0ALPINE-CVE-2023-30609
Alpine:v3.24element-web1.11.30-r0ALPINE-CVE-2023-30609
npmmatrix-react-sdk3.71.0GHSA-xv83-x443-7rmw

Affected products (as reported)

VendorProductVersions
matrix-org matrix-react-sdk < 3.71.0

Weakness: CWE-74 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:L/A:L

References