{"id":"GHSA-f83w-wqhc-cfp4","summary":"Matrix SDK for React's URL preview setting for a room is controllable by the homeserver","details":"### Impact\nA 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.\n\nEven if the CVSS score would be 4.1 ([AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:N/A:N](https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:N/A:N&version=3.1)) the maintainer classifies this as High severity issue.\n\n### Patches\nThis was patched in matrix-react-sdk 3.105.1.\n\n### Workarounds\nDeployments that trust their homeservers, as well as closed federations of trusted servers, are not affected.\n\n### References\nN/A.\n","aliases":["CVE-2024-42347"],"modified":"2024-08-08T16:38:00Z","published":"2024-08-06T14:12:45Z","database_specific":{"cwe_ids":["CWE-359"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2024-08-06T14:12:45Z","nvd_published_at":"2024-08-06T18:15:57Z"},"references":[{"type":"WEB","url":"https://github.com/matrix-org/matrix-react-sdk/security/advisories/GHSA-f83w-wqhc-cfp4"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-42347"},{"type":"PACKAGE","url":"https://github.com/matrix-org/matrix-react-sdk"},{"type":"WEB","url":"https://github.com/matrix-org/matrix-react-sdk/releases/tag/v3.105.1"}],"affected":[{"package":{"name":"matrix-react-sdk","ecosystem":"npm","purl":"pkg:npm/matrix-react-sdk"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.105.1"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/08/GHSA-f83w-wqhc-cfp4/GHSA-f83w-wqhc-cfp4.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:N/A:N"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:N/VA:N/SC:L/SI:N/SA:N/U:Red"}]}