CVE-2023-37259: Cross site scripting in Export Chat feature
Vulnerability summary
CVE-2023-37259 is a medium (CVSS 6.1) vulnerability in matrix-org matrix-react-sdk. EPSS estimates a 0.45% chance of exploitation in the next 30 days, higher than 41% of scored vulnerabilities.
Not severe (CVSS 6.1, adjacent network); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 18-07-2023PublishedVulnerability first disclosed.
- 18-10-2024Last modifiedVulnerability information updated.
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 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.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · NpmEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:A/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N
- NVDNIST5.4MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:NDiffers
EPSS trend
Probability
0.45%
Chance of exploitation in the next 30 days
Percentile
41%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.45% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: adjacent network, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.
Opensuse2 products
- element-desktop&distro=openSUSE Tumbleweed< 1.11.36-1.1
- element-web&distro=openSUSE Tumbleweed< 1.11.36-1.1
Matrix-org1 product
- matrix-react-sdk≥ 3.32.0, < 3.76.0
Matrix-react-sdk_project1 product
- matrix-react-sdk≥ 3.32.0, < 3.76.0 | 3.76.0:rc1 | 3.76.0:rc2
Npm1 product
- matrix-react-sdk≥ 3.32.0, < 3.76.0
4 vendors · 5 products
References
6 links- github.com/matrix-org/matrix-react-sdk/security/advisories/GHSA-c9vx-2g7w-rp65X Refsource CONFIRMWEBThird Party Advisory
- github.com/matrix-org/matrix-react-sdk/commit/22fcd34c606f32129ebc967fc21f24fb708a98b8X Refsource MISCWEBPatch