Medium severity · published Apr 25, 2023
CVE-2023-30609
matrix-react-sdk vulnerable to HTML injection in search results via plaintext message highlighting
4.7
CVSS
0.6%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
None
Integrity
Low
Availability
None
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)0.6% · higher than 49% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
MA
matrix-react-sdk · matrix-org
< 3.71.0 · source: vendor, NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2023-30609
CVE.org
https://www.cve.org/CVERecord?id=CVE-2023-30609
Patch
https://github.com/matrix-org/matrix-react-sdk/commit/bf182bc94556849d7acdfa0e5fdea2aa129ea826
Release Notes
https://github.com/matrix-org/matrix-react-sdk/releases/tag/v3.71.0
Vendor Advisory
https://github.com/matrix-org/matrix-react-sdk/security/advisories/GHSA-xv83-x443-7rmw
More from matrix-react-sdk
8.7
CVE-2024-47824
Malicious homeservers can steal message keys when the matrix-react-sdk user invites another user to a room
8.2
CVE-2023-28103
Prototype pollution in matrix-react-sdk
6.5
CVE-2024-42347
URL preview setting for a room is controllable by the homeserver in matrix-react-sdk
5.4
CVE-2023-37259
Cross site scripting in Export Chat feature
5.3
CVE-2022-36060
Prototype pollution in matrix-react-sdk
