Advisory

GHSA-xv83-x443-7rmw

Also known as: CVE-2023-30609

Summary

HTML injection in search results via plaintext message highlighting

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2023-04-25 19:48 UTC
Modified
2023-11-08 04:12 UTC

Affected packages and fixes

matrix-react-sdk

npm · All systems

Affected

  • introduced 0, fixed 3.71.0 (semver)

Fixed versions

3.71.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences