{"id":"CVE-2023-30609","published":"2023-04-25T20:58:27Z","modified":"2025-02-03T17:54:55Z","title":"matrix-react-sdk vulnerable to HTML injection in search results via plaintext message highlighting","vendor":"matrix-org","product":"matrix-react-sdk","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00676,"percentile":0.47336,"provenance":"source"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"references":[{"url":"https://github.com/matrix-org/matrix-react-sdk/security/advisories/GHSA-xv83-x443-7rmw","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/matrix-org/matrix-react-sdk/commit/bf182bc94556849d7acdfa0e5fdea2aa129ea826","tags":["x_refsource_MISC"]},{"url":"https://github.com/matrix-org/matrix-react-sdk/releases/tag/v3.71.0","tags":["x_refsource_MISC"]}],"priority":{"score":13.2,"factors":[{"name":"EPSS percentile","points":9.47},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"matrix-org","affectedVersions":[{"vendor":"matrix-org","product":"matrix-react-sdk","versions":["< 3.71.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-02-03T17:54:49.396194Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"matrix-react-sdk","vulnerableRanges":["<3.71.0"],"patched":["3.71.0"],"from":["GHSA-xv83-x443-7rmw"],"provenance":"source"}],"summary":{"text":"A flaw in matrix-react-sdk, a React-based SDK for embedding a Matrix chat/VoIP client in web pages, causes plaintext messages containing HTML tags to be rendered as HTML in search results instead of as text. An attacker needs to trick a user into searching for a specific message containing the HTML injection payload, and the attack relies on that user interaction, while the hardcoded content security policy prevents cross-site scripting.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:42:12Z"},"euvd":{"id":"EUVD-2023-1433","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-32622","published":"2021-05-17","fixed":"3.21.0","kev":false},{"cve":"CVE-2022-36060","published":"2023-03-28","fixed":"3.53.0","kev":false},{"cve":"CVE-2023-28103","published":"2023-03-28","fixed":"3.69.0","kev":false,"link":{"from":"CVE-2023-28103","to":"CVE-2023-30609","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:matrix-react-sdk","fromFixed":"3.69.0","toFixed":"3.71.0","daysApart":28}]}},{"cve":"CVE-2023-30609","published":"2023-04-25","fixed":"3.71.0","kev":false},{"cve":"CVE-2023-37259","published":"2023-07-18","fixed":"3.76.0","kev":false,"link":{"from":"CVE-2023-30609","to":"CVE-2023-37259","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:matrix-react-sdk","fromFixed":"3.71.0","toFixed":"3.76.0","daysApart":84}]}},{"cve":"CVE-2024-47824","published":"2024-10-15","fixed":"3.102.0","kev":false},{"cve":"CVE-2024-42347","published":"2024-08-06","fixed":"3.105.1","kev":false}],"package":"npm:matrix-react-sdk"}}