CVE-2023-30609 matrix-react-sdk vulnerable to HTML injection in search results via plaintext message highlighting
MediumCVSS 4.7
EPSS 0.62%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
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.
Upgrade path
11 packages: 10 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| alpine/element-web(Alpine v3.18) | < 1.11.30-r0 | 1.11.30-r0 | Fixed |
| alpine/element-web(Alpine v3.19) | < 1.11.30-r0 | 1.11.30-r0 | Fixed |
| alpine/element-web(Alpine v3.20) | < 1.11.30-r0 | 1.11.30-r0 | Fixed |
| alpine/element-web(Alpine v3.21) | < 1.11.30-r0 | 1.11.30-r0 | Fixed |
| alpine/element-web(Alpine v3.22) | < 1.11.30-r0 | 1.11.30-r0 | Fixed |
| alpine/element-web(Alpine v3.23) | < 1.11.30-r0 | 1.11.30-r0 | Fixed |
| alpine/element-web(Alpine v3.24) | < 1.11.30-r0 | 1.11.30-r0 | Fixed |
| alpine/riot-web(Alpine v3.17) | < 1.11.30-r0 | 1.11.30-r0 | Fixed |
| matrix-react-sdk project matrix-react-sdk | < 3.71.0 | 3.71.0 | Fixed |
| npm matrix-react-sdk(npm) | < 3.71.0 | 3.71.0 | Fixed |
| matrix-org matrix-react-sdk | = < 3.71.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm matrix-react-sdk(npm) | < 3.71.0 | 3.71.0 |
| matrix-org matrix-react-sdk | = < 3.71.0 | No fix listed |
| matrix-react-sdk project matrix-react-sdk | < 3.71.0 | 3.71.0 |
| alpine/element-web(Alpine:v3.18) | < 1.11.30-r0 | 1.11.30-r0 |
| alpine/element-web(Alpine:v3.19) | < 1.11.30-r0 | 1.11.30-r0 |
| alpine/element-web(Alpine:v3.20) | < 1.11.30-r0 | 1.11.30-r0 |
| alpine/element-web(Alpine:v3.21) | < 1.11.30-r0 | 1.11.30-r0 |
| alpine/element-web(Alpine:v3.22) | < 1.11.30-r0 | 1.11.30-r0 |
| alpine/element-web(Alpine:v3.23) | < 1.11.30-r0 | 1.11.30-r0 |
| alpine/element-web(Alpine:v3.24) | < 1.11.30-r0 | 1.11.30-r0 |
| alpine/riot-web(Alpine:v3.17) | < 1.11.30-r0 | 1.11.30-r0 |
References
- https://github.com/matrix-org/matrix-react-sdk/security/advisories/GHSA-xv83-x443-7rmw vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/matrix-org/matrix-react-sdk/commit/bf182bc94556849d7acdfa0e5fdea2aa129ea826 patch
- https://github.com/matrix-org/matrix-react-sdk/releases/tag/v3.71.0 release-notes
- github.com
- security.alpinelinux.org vendor-advisory
- github.com product