Skip to content

matrix-react-sdk vulnerable to XSS in Export Chat feature

Moderate severity GitHub Reviewed Published Jul 18, 2023 in matrix-org/matrix-react-sdk • Updated Nov 6, 2023

Package

npm matrix-react-sdk (npm)

Affected versions

>= 3.32.0, < 3.76.0

Patched versions

3.76.0

Description

Description

The Export Chat feature includes certain attacker-controlled elements in the generated document without sufficient escaping, leading to stored XSS.

Impact

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.

Patches

This was patched in matrix-react-sdk 3.76.0.

Workarounds

None, other than not using the Export Chat feature.

References

N/A

References

@andybalaam andybalaam published to matrix-org/matrix-react-sdk Jul 18, 2023
Published to the GitHub Advisory Database Jul 18, 2023
Reviewed Jul 18, 2023
Published by the National Vulnerability Database Jul 18, 2023
Last updated Nov 6, 2023

Severity

Moderate

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Adjacent
Attack complexity
Low
Privileges required
Low
User interaction
Required
Scope
Changed
Confidentiality
High
Integrity
None
Availability
None

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:A/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N

EPSS score

0.053%
(22nd percentile)

CVE ID

CVE-2023-37259

GHSA ID

GHSA-c9vx-2g7w-rp65
Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.