{"id":"CVE-2023-30609","aliases":["CVE-2023-30609","GHSA-xv83-x443-7rmw"],"related":[],"kind":"vulnerability","state":"published","title":"matrix-react-sdk vulnerable to HTML injection in search results via plaintext message highlighting","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\nPlain 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.\n\nCross-site scripting is possible by including resources from `recaptcha.net` and `gstatic.com` which are included in the default CSP.\n\nThanks to [Cadence Ember](https://cadence.moe/) for finding the injection and to [S1m](https://github.com/p1gp1g/) for finding possible XSS vectors.\n\n### Patches\nVersion 3.71.0 of the SDK fixes the issue.\n\n### Workarounds\nRestarting the client will clear the injection.","format":"markdown","source":"ghsa"}],"published":"2023-04-25T19:48:11.000Z","modified":"2026-06-17T05:55:07.830Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:L/A:L","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:L/A:L","score":5.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:L","score":8.2,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N","score":4.7,"rating":"MEDIUM"}],"cwes":["CWE-74","CWE-79"],"affected":[{"ranges":[{"version":"< 3.71.0","status":"affected"}],"vendor":"matrix-org","product":"matrix-react-sdk","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.71.0"}],"ecosystem":"npm","package":"matrix-react-sdk","purl":"pkg:npm/matrix-react-sdk","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.71.0"}],"vendor":"matrix-react-sdk_project","product":"matrix-react-sdk","cpe":"cpe:2.3:a:matrix-react-sdk_project:matrix-react-sdk:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/matrix-org/matrix-react-sdk/security/advisories/GHSA-xv83-x443-7rmw","tags":["vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/matrix-org/matrix-react-sdk/commit/bf182bc94556849d7acdfa0e5fdea2aa129ea826","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/matrix-org/matrix-react-sdk/releases/tag/v3.71.0","tags":["release-notes","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-30609","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/matrix-org/matrix-react-sdk","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-02-03T17:54:49.396Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-30609","url":"https://www.cve.org/CVERecord?id=CVE-2023-30609","licence":"CVE Terms of Use","modified":"2025-02-03T17:54:55.060Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xv83-x443-7rmw","url":"https://github.com/advisories/GHSA-xv83-x443-7rmw","licence":"CC-BY-4.0","modified":"2023-11-08T04:12:25.905Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-30609","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-30609","licence":"Public domain","modified":"2026-06-17T05:55:07.830Z"}],"updatedAt":"2026-11-25T22:58:23.754Z","epss":{"score":0.00617,"percentile":0.50906,"date":"2026-12-01T12:00:22.000Z"}}