Every CVE Search/ Get API key

CVE-2023-30609

matrix-react-sdk vulnerable to HTML injection in search results via plaintext message highlighting

5.4 MediumFix available

matrix-react-sdk is a react-based SDK for inserting a Matrix chat/VoIP client into a web page. Prior to version 3.71.0, plain text messages containing HTML tags are rendered as HTML in the search results. To exploit this, an attacker needs to trick a user into searching for a specific message containing an HTML injection payload. No cross-site scripting attack is possible due to the hardcoded content security policy. Version 3.71.0 of the SDK patches over the issue. As a workaround, restarting the client will clear the HTML injection.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
Low
User interaction
Required

What an attacker can affect

Confidentiality
None
Integrity
Low
Availability
Low

Exploit likelihood

0.62%Up 0.6 points since Apr 26, 2023
90%50%10%1%

What each source reports

CVE List Score used 5.4

matrix-react-sdk vulnerable to HTML injection in search results via plaintext message highlighting

matrix-react-sdk is a react-based SDK for inserting a Matrix chat/VoIP client into a web page. Prior to version 3.71.0, plain text messages containing HTML tags are rendered as HTML in the search results. To exploit this, an attacker needs to trick a user into searching for a specific message containing an HTML injection payload. No cross-site scripting attack is possible due to the hardcoded content security policy. Version 3.71.0 of the SDK patches over the issue. As a workaround, restarting the client will clear the HTML injection.

Record
CVE-2023-30609
CVSS 3.1
5.4 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:L/A:L
Weakness
CWE-74
Updated
2026-11-02
EUVDEUVD-2023-1433 5.4

matrix-react-sdk is a react-based SDK for inserting a Matrix chat/VoIP client into a web page. Prior to version 3.71.0, plain text messages containing HTML tags are rendered as HTML in the search results. To exploit this, an attacker needs to trick a user into searching for a specific message containing an HTML injection payload. No cross-site scripting attack is possible due to the hardcoded content security policy. Version 3.71.0 of the SDK patches over the issue. As a workaround, restarting the client will clear the HTML injection.

Record
EUVD-2023-1433
CVSS 3.1
5.4 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:L/A:L
Updated
2026-11-03
GitHub AdvisoriesGHSA-xv83-x443-7rmw 8.2

HTML injection in search results via plaintext message highlighting

Impact

Plain text messages containing HTML tags are rendered as HTML in the search results. To exploit this, an attacker needs to trick a user into searching for a specific message containing an HTML injection payload.

Cross-site scripting is possible by including resources from recaptcha.net and gstatic.com which are included in the default CSP.

Thanks to Cadence Ember for finding the injection and to S1m for finding possible XSS vectors.

Patches

Version 3.71.0 of the SDK fixes the issue.

Workarounds

Restarting the client will clear the injection.

Record
GHSA-xv83-x443-7rmw
CVSS 3.1
8.2 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:L
Weakness
CWE-74, CWE-79
Updated
2026-11-02
NVD 5.4

matrix-react-sdk is a react-based SDK for inserting a Matrix chat/VoIP client into a web page. Prior to version 3.71.0, plain text messages containing HTML tags are rendered as HTML in the search results. To exploit this, an attacker needs to trick a user into searching for a specific message containing an HTML injection payload. No cross-site scripting attack is possible due to the hardcoded content security policy. Version 3.71.0 of the SDK patches over the issue. As a workaround, restarting the client will clear the HTML injection.

Record
CVE-2023-30609
CVSS 3.1
5.4 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:L/A:L
CVSS 3.1
4.7 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N
Weakness
CWE-74
Updated
2026-11-02
OSVALPINE-CVE-2023-30609 4.7

matrix-react-sdk is a react-based SDK for inserting a Matrix chat/VoIP client into a web page. Prior to version 3.71.0, plain text messages containing HTML tags are rendered as HTML in the search results. To exploit this, an attacker needs to trick a user into searching for a specific message containing an HTML injection payload. No cross-site scripting attack is possible due to the hardcoded content security policy. Version 3.71.0 of the SDK patches over the issue. As a workaround, restarting the client will clear the HTML injection.

Record
ALPINE-CVE-2023-30609
CVSS 3.1
4.7 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N
Updated
2026-11-03
OSV 5.4

matrix-react-sdk vulnerable to HTML injection in search results via plaintext message highlighting

matrix-react-sdk is a react-based SDK for inserting a Matrix chat/VoIP client into a web page. Prior to version 3.71.0, plain text messages containing HTML tags are rendered as HTML in the search results. To exploit this, an attacker needs to trick a user into searching for a specific message containing an HTML injection payload. No cross-site scripting attack is possible due to the hardcoded content security policy. Version 3.71.0 of the SDK patches over the issue. As a workaround, restarting the client will clear the HTML injection.

Record
CVE-2023-30609
CVSS 3.1
5.4 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:L/A:L
Weakness
CWE-74
Updated
2026-11-02
OSVGHSA-xv83-x443-7rmw 8.2

HTML injection in search results via plaintext message highlighting

Impact

Plain text messages containing HTML tags are rendered as HTML in the search results. To exploit this, an attacker needs to trick a user into searching for a specific message containing an HTML injection payload.

Cross-site scripting is possible by including resources from recaptcha.net and gstatic.com which are included in the default CSP.

Thanks to Cadence Ember for finding the injection and to S1m for finding possible XSS vectors.

Patches

Version 3.71.0 of the SDK fixes the issue.

Workarounds

Restarting the client will clear the injection.

Record
GHSA-xv83-x443-7rmw
CVSS 3.1
8.2 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:L
Weakness
CWE-74, CWE-79
Updated
2026-11-02
OSVopenSUSE-SU-2024:12884-1 No score

element-web-1.11.30-1.1 on GA media

These are all security issues fixed in the element-web-1.11.30-1.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:12884-1
Updated
2026-11-02
OSVopenSUSE-SU-2024:12895-1 No score

element-desktop-1.11.30-1.1 on GA media

These are all security issues fixed in the element-desktop-1.11.30-1.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:12895-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
matrix-react-sdk
npm
before 3.71.0
3.71.0
element-web
Alpine:v3.18
before 1.11.30-r0
1.11.30-r0
element-web
Alpine:v3.19
before 1.11.30-r0
1.11.30-r0
element-web
Alpine:v3.20
before 1.11.30-r0
1.11.30-r0
element-web
Alpine:v3.21
before 1.11.30-r0
1.11.30-r0
element-web
Alpine:v3.22
before 1.11.30-r0
1.11.30-r0
element-web
Alpine:v3.23
before 1.11.30-r0
1.11.30-r0
element-web
Alpine:v3.24
before 1.11.30-r0
1.11.30-r0
riot-web
Alpine:v3.17
before 1.11.30-r0
1.11.30-r0
element-web
openSUSE:Tumbleweed
before 1.11.30-1.1
1.11.30-1.1
element-desktop
openSUSE:Tumbleweed
before 1.11.30-1.1
1.11.30-1.1

History

History
RecordedChangedSources
affected, aliases, referencesOSV
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2023-30609 is a medium vulnerability (CVSS 5.4) in Matrix-org Matrix-react-sdk, published April 25, 2023. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.62%, the 49th percentile. Fixed in matrix-react-sdk 3.71.0.

References

MoveEnter Open