CVE-2023-37259

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 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.

Category

6.1
CVSS
Severity: Medium
CVSS 3.1 •
EPSS 0.14%
Third-Party Advisory github.com
Affected: matrix-org matrix-react-sdk
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2023-37259?
CVE-2023-37259 has been scored as a medium severity vulnerability.
How to fix CVE-2023-37259?
To fix CVE-2023-37259, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2023-37259 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2023-37259 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2023-37259?
CVE-2023-37259 affects matrix-org matrix-react-sdk.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.