Vulnerability · Published Jul 18, 2023 · Assigned by GitHub_M

CVE-2023-37259Cross site scripting in Export Chat feature

Medium 6.1

In plain English

A medium-severity cross-site scripting in matrix-react-sdk from matrix-org. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 39% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.1Medium
Exploit odds (30 days)0.5%top 60.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
npmmatrix-react-sdk3.76.0GHSA-c9vx-2g7w-rp65

Affected products (as reported)

VendorProductVersions
matrix-org matrix-react-sdk >= 3.32.0, < 3.76.0

Weakness: CWE-79 · Vector: CVSS:3.1/AV:A/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N

References