CVE-2023-37259

Cross site scripting in Export Chat feature

MEDIUM
5.4
CVSS Score
Published: July 18, 2023 at 04:59 PM UTC
Updated: June 17, 2026 at 06:07 AM UTC
2 products affected across 2 vendorsMatrix React SDKMatrix React SDK

Using matrix-react-sdk by matrix-org?

Get instant alerts when new vulnerabilities affect matrix-react-sdk - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.4
Exploit prediction
EPSS 0.5%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

3.32.0 ≤ v < 3.76.03.76.0 rc13.76.0 rc2
Affected range stops below 3.76.0, so it looks safe — our inference, not a vendor statement
v < 3.76.0
Affected range stops below 3.76.0, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
LOW
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-79

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card