Wiz Agents & Workflows are here

CVE-2023-37259
JavaScript vulnerability analysis and mitigation

Overview

matrix-react-sdk is a react-based SDK for inserting a Matrix chat/voip client into a web page. The vulnerability (CVE-2023-37259) was discovered in the Export Chat feature, which includes certain attacker-controlled elements in the generated document without sufficient escaping, leading to stored Cross-site scripting (XSS). The issue was addressed in version 3.76.0 (Matrix Advisory).

Technical details

The vulnerability stems from insufficient escaping of attacker-controlled elements in the generated document when using the Export Chat feature. Since the Export Chat feature generates a separate document, an attacker can only inject code run from the null origin. The vulnerability affects versions from 3.32.0 up to (excluding) 3.76.0. The issue has been assigned a CVSS v3.1 base score of 6.1 (Medium) with vector: CVSS:3.1/AV:A/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N (Matrix Advisory).

Impact

While the impact is restricted due to code execution being limited to the null origin, attackers can potentially use the XSS vulnerability to leak message contents. A malicious homeserver can act as an attacker since the affected inputs are controllable server-side (Matrix Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 3.76.0 with commit 22fcd34c60. Users are advised to upgrade to this version or later. The only known workaround for users unable to upgrade is to disable or avoid using the Export Chat feature (Matrix Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-3hfp-gqgh-xc5gCRITICAL9.6
  • JavaScriptJavaScript
  • @lightdash/cli
NoYesApr 02, 2026
CVE-2026-34950CRITICAL9.1
  • JavaScriptJavaScript
  • fast-jwt
NoNoApr 02, 2026
CVE-2026-34752HIGH8.7
  • JavaScriptJavaScript
  • haraka
NoYesApr 02, 2026
CVE-2026-34825HIGH8.5
  • JavaScriptJavaScript
  • @nocobase/plugin-workflow-sql
NoYesApr 02, 2026
GHSA-ccgf-5rwj-j3hvLOW2.1
  • JavaScriptJavaScript
  • telejson
NoYesApr 02, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management