CVE-2023-30609: matrix-react-sdk vulnerable to HTML injection in search results via plaintext message highlighting

Published Apr 25, 2023
·
Updated

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.

Other sources

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.

Affected Software

2 affected componentsFixes available
npm/matrix-react-sdk<3.71.0
3.71.0
Matrix-react-sdk Project Matrix-react-sdk Node.js<3.71.0

Event History

Apr 25, 2023
Advisory Published
07:48 PM
CVE Published
via MITRE·08:58 PM
Data Sourced
via MITRE·08:58 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2023-30609?

CVE-2023-30609 is considered a medium severity vulnerability due to potential cross-site scripting attacks.

2

How can I fix CVE-2023-30609?

To fix CVE-2023-30609, upgrade to matrix-react-sdk version 3.71.0 or later.

3

What type of attack is possible with CVE-2023-30609?

CVE-2023-30609 allows for cross-site scripting attacks by rendering plain text messages with HTML tags in search results.

4

Which software is affected by CVE-2023-30609?

CVE-2023-30609 affects versions of the matrix-react-sdk prior to 3.71.0.

5

What methods can an attacker use to exploit CVE-2023-30609?

An attacker can exploit CVE-2023-30609 by tricking a user into searching for a specific message that contains an HTML injection payload.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203