CVE-2023-30609matrix-react-sdk vulnerable to HTML injection in search results via plaintext message…
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Alpine Linux 3.24 | element-web | Fixed | 1.11.30-r0 | ALPINE-CVE-2023-30609 |
| Alpine Linux 3.23 | element-web | Fixed | 1.11.30-r0 | ALPINE-CVE-2023-30609 |
| Alpine Linux 3.22 | element-web | Fixed | 1.11.30-r0 | ALPINE-CVE-2023-30609 |
| Alpine Linux 3.21 | element-web | Fixed | 1.11.30-r0 | ALPINE-CVE-2023-30609 |
| Alpine Linux 3.20 | element-web | Fixed | 1.11.30-r0 | ALPINE-CVE-2023-30609 |
| Alpine Linux 3.19 | element-web | Fixed | 1.11.30-r0 | ALPINE-CVE-2023-30609 |
| Alpine Linux 3.18 | element-web | Fixed | 1.11.30-r0 | ALPINE-CVE-2023-30609 |
| Alpine Linux 3.17 | riot-web | Fixed | 1.11.30-r0 | ALPINE-CVE-2023-30609 |
| npm library | matrix-react-sdk | Fixed | 3.71.0 | GHSA-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.
- matrix-org matrix-react-sdk: affected: < 3.71.0
References
- https://github.com/matrix-org/matrix-react-sdk/security/advisories/GHSA-xv83-x443-7rmw
- https://github.com/matrix-org/matrix-react-sdk/commit/bf182bc94556849d7acdfa0e5fdea2aa129ea826
- https://github.com/matrix-org/matrix-react-sdk/releases/tag/v3.71.0
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.