Cross site scripting in Export Chat feature
Key facts
- Attack vector
- Adjacent network
- Privileges required
- Low
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| matrix-org | matrix-react-sdk | 3.32.0 to before 3.76.0 | 3.76.0 | Patch available | CNA |
| — | matrix-react-sdk (npm) | 3.32.0 to before 3.76.0 | 3.76.0 | Patch available | GHSA-c9vx-2g7w-rp65 |
- matrix-react-sdk Vendormatrix-org Affected 3.32.0 to before 3.76.0 Fixed in 3.76.0 Patch available CNA
- matrix-react-sdk (npm) Vendor— Affected 3.32.0 to before 3.76.0 Fixed in 3.76.0 Patch available GHSA-c9vx-2g7w-rp65
CPE configurations NVD · 3
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:matrix-react-sdk_project:matrix-react-sdk:*:*:*:*:*:node.js:*:* | 3.32.0 to before 3.76.0 | Vulnerable | Matrix-react-sdk Project |
| cpe:2.3:a:matrix-react-sdk_project:matrix-react-sdk:3.76.0:rc1:*:*:*:node.js:*:* | 3.76.0 rc1 | Vulnerable | Matrix-react-sdk Project |
| cpe:2.3:a:matrix-react-sdk_project:matrix-react-sdk:3.76.0:rc2:*:*:*:node.js:*:* | 3.76.0 rc2 | Vulnerable | Matrix-react-sdk Project |
- cpe:2.3:a:matrix-react-sdk_project:matrix-react-sdk:*:*:*:*:*:node.js:*:* Versions 3.32.0 to before 3.76.0 Vulnerable ·Matrix-react-sdk Project
- cpe:2.3:a:matrix-react-sdk_project:matrix-react-sdk:3.76.0:rc1:*:*:*:node.js:*:* Versions 3.76.0 rc1 Vulnerable ·Matrix-react-sdk Project
- cpe:2.3:a:matrix-react-sdk_project:matrix-react-sdk:3.76.0:rc2:*:*:*:node.js:*:* Versions 3.76.0 rc2 Vulnerable ·Matrix-react-sdk Project
Remediation
- Fix · CNA matrix-react-sdk (matrix-org) Fixed in 3.76.0
- Fix · GHSA-c9vx-2g7w-rp65 matrix-react-sdk (npm) Fixed in 3.76.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2023-37259
- 2026-10-03 Alias added: GHSA-c9vx-2g7w-rp65
References
Patch 1
Advisory 2
More matrix-org vulnerabilities
- TI-2023-20035 Sydent does not verify email server certificates CVSS 3.1CRITICAL 9.3
- TI-2026-45046 Dendrite 0.13.8 SSRF via Unauthenticated Legacy Media Download Endpoint CVSS 4.0MEDIUM 6.9
- TI-2026-45045 Dendrite 0.13.8 Improper Authorization via POST account/3pid/delete Endpoint CVSS 4.0HIGH 7.1
- TI-2026-45047 Dendrite 0.13.8 syncapi /context Endpoint Post-Leave State Exposure CVSS 4.0MEDIUM 5.3
- TI-2023-15617 Synapse Outgoing federation to specific hosts can be disabled by sending malicious invites CVSS 3.1MEDIUM 5.0
- TI-2023-20039 matrix-appservice-irc IRC command injection via admin commands containing newlines CVSS 3.1CRITICAL 9.8
Sources
- CVE-2023-37259 · CVE Program
- CVE-2023-37259 · NVD
- FIRST EPSS
- GHSA-c9vx-2g7w-rp65 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences