{"id":"CVE-2023-37259","published":"2023-07-18T16:59:21Z","modified":"2024-10-18T17:24:35Z","title":"Cross site scripting in Export Chat feature","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. The Export Chat feature includes certain attacker-controlled elements in the generated document without sufficient escaping, leading to stored Cross site scripting (XSS). Since the Export Chat feature generates a separate document, an attacker can only inject code run from the `null` origin, restricting the impact. However, the attacker can still potentially use the XSS to leak message contents. A malicious homeserver is a potential attacker since the affected inputs are controllable server-side. This issue has been addressed in commit `22fcd34c60` which is included in release version 3.76.0. Users are advised to upgrade. The only known workaround for this issue is to disable or to not use the Export Chat feature.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00452,"percentile":0.40162,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/matrix-org/matrix-react-sdk/security/advisories/GHSA-c9vx-2g7w-rp65","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/matrix-org/matrix-react-sdk/commit/22fcd34c606f32129ebc967fc21f24fb708a98b8","tags":["x_refsource_MISC"]}],"priority":{"score":12.3,"factors":[{"name":"EPSS percentile","points":8.03},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"matrix-org","affectedVersions":[{"vendor":"matrix-org","product":"matrix-react-sdk","versions":[">= 3.32.0, < 3.76.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-10-18T16:07:19.630155Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"matrix-react-sdk","vulnerableRanges":[">=3.32.0, <3.76.0"],"patched":["3.76.0"],"from":["GHSA-c9vx-2g7w-rp65"],"provenance":"source"}],"euvd":{"id":"EUVD-2023-2027","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"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},{"cve":"CVE-2023-30609","published":"2023-04-25","fixed":"3.71.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-2023-37259","published":"2023-07-18","fixed":"3.76.0","kev":false},{"cve":"CVE-2024-47824","published":"2024-10-15","fixed":"3.102.0","kev":false,"link":{"from":"CVE-2023-37259","to":"CVE-2024-47824","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:matrix-react-sdk","fromFixed":"3.76.0","toFixed":"3.102.0","daysApart":455}]}},{"cve":"CVE-2024-42347","published":"2024-08-06","fixed":"3.105.1","kev":false}],"package":"npm:matrix-react-sdk"}}