CVEfocus › CVE database › CVE-2023-30609

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

CVSS 5.4 MediumEPSS 0.7% (higher than 47% of CVEs)Published 2023-04-25Updated 2025-02-03Assigner: GitHub_M

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.

CWE-74

What to do

Fixed builds are available from Alpine, npm: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

9Fixed

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Alpine Linux 3.24element-webFixed1.11.30-r0ALPINE-CVE-2023-30609
Alpine Linux 3.23element-webFixed1.11.30-r0ALPINE-CVE-2023-30609
Alpine Linux 3.22element-webFixed1.11.30-r0ALPINE-CVE-2023-30609
Alpine Linux 3.21element-webFixed1.11.30-r0ALPINE-CVE-2023-30609
Alpine Linux 3.20element-webFixed1.11.30-r0ALPINE-CVE-2023-30609
Alpine Linux 3.19element-webFixed1.11.30-r0ALPINE-CVE-2023-30609
Alpine Linux 3.18element-webFixed1.11.30-r0ALPINE-CVE-2023-30609
Alpine Linux 3.17riot-webFixed1.11.30-r0ALPINE-CVE-2023-30609
npm librarymatrix-react-sdkFixed3.71.0GHSA-xv83-x443-7rmw

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.