CVE-2023-30609
HTML injection in search results via plaintext message highlighting
Reported by github_m · Published April 25, 2023
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| element-web | Alpine | 1.11.30-r0 |
| matrix-react-sdk | matrix-react-sdk_project | 3.71.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| matrix-org | matrix-react-sdk | < 3.71.0 |
| alpine | element-web | 0 |
| matrix-org | matrix-react-sdk | 0 |
| alpine | riot-web | 0 |
| npm | matrix-react-sdk | 0 |
Timeline
- Apr 25, 2023 CVE Published
- Apr 26, 2023 EPSS Score (30 in total, the first dated here)
- Apr 26, 2023 PoC Published
- Nov 8, 2023 CVE Updated
- Mar 10, 2026 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-30609
vulnetix vdb fixes CVE-2023-30609
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-30609/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/matrix-org/matrix-react-sdk/security/advisories/GHSA-xv83-x443-7rmw x_refsource_CONFIRM
- https://github.com/matrix-org/matrix-react-sdk/commit/bf182bc94556849d7acdfa0e5fdea2aa129ea826 x_refsource_MISC
- https://github.com/matrix-org/matrix-react-sdk/releases/tag/v3.71.0 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2023-30609 advisory
- https://github.com/advisories/GHSA-xv83-x443-7rmw advisory