{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-37259","id":"CVE-2023-37259","title":"Cross site scripting in Export Chat feature","description":"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 ","descriptionLong":"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.","published":"2023-07-18T16:59:21.659Z","updated":"2026-10-28T02:31:04.203292801Z","reserved":"2023-06-29T19:35:26.436Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:A/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:A/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:A/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N","rating":"medium","source":"github.com"},{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:A/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:A/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["matrix-org matrix-react-sdk"],"affectedProducts":[{"vendor":"matrix-org","product":"matrix-react-sdk","defaultStatus":null,"versions":[{"version":">= 3.32.0, < 3.76.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"matrix-react-sdk","purl":"pkg:npm/matrix-react-sdk","ranges":[">=3.32.0 <3.76.0"],"fixed":["3.76.0"],"advisory":"GHSA-c9vx-2g7w-rp65"}],"cwes":["CWE-79","CWE-80"],"aliases":["GHSA-c9vx-2g7w-rp65"],"references":[{"url":"https://github.com/matrix-org/matrix-react-sdk/security/advisories/GHSA-c9vx-2g7w-rp65","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/matrix-org/matrix-react-sdk/commit/22fcd34c606f32129ebc967fc21f24fb708a98b8","tags":["x_refsource_MISC","x_transferred","Patch","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/37xxx/CVE-2023-37259.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-37259","tags":["advisory"]},{"url":"https://github.com/matrix-org/matrix-react-sdk","tags":["package"]},{"url":"https://github.com/matrix-org/matrix-react-sdk/releases/tag/v3.76.0","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00452,"epssPercentile":0.40027,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-37259","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-37259","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-37259","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-c9vx-2g7w-rp65","ok":true,"note":"GHSA-c9vx-2g7w-rp65"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2023-37259","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["react"],"critical":[],"attention":null}