{"id":"CVE-2026-45057","aliases":["CVE-2026-45057","GHSA-h97m-27fx-42rx","RUSTSEC-2026-0158"],"related":[],"kind":"vulnerability","state":"published","title":"matrix-sdk-ui: Incomplete edit validation","summary":"matrix-sdk-ui provides GUI-centric utilities on top of matrix-rust-sdk. The message edit validation logic in the  `matrix-sdk-ui` crate prior to 0.17.0 is missing a check: when replacing an encrypted event, the replacement event itself is not required to be encrypted. This enables a malicious homeserver administrators (or actors with equivalent power) to impersonate or spoof messages as if they were sent by a victim user. `matrix-sdk-ui` 0.17.0 fixes the message edit validation logic to align with the algorithm for replacement events[^1] described in the Matrix specification. No known workarounds are available.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"matrix-sdk-ui provides GUI-centric utilities on top of matrix-rust-sdk. The message edit validation logic in the  `matrix-sdk-ui` crate prior to 0.17.0 is missing a check: when replacing an encrypted event, the replacement event itself is not required to be encrypted. This enables a malicious homeserver administrators (or actors with equivalent power) to impersonate or spoof messages as if they were sent by a victim user. `matrix-sdk-ui` 0.17.0 fixes the message edit validation logic to align with the algorithm for replacement events[^1] described in the Matrix specification. No known workarounds are available.","source":"cvelist"},{"lang":"en","text":"### Impact\nThe message edit validation logic in the  `matrix-sdk-ui` crate before 0.16.1 is missing a check: when replacing an encrypted event, the replacement event itself is not required to be encrypted. This enables a malicious homeserver administrator (or an actor with equivalent power) to impersonate or spoof messages as if they were sent by a victim user.\n\n### Patches\n`matrix-sdk-ui` 0.16.1 fixes the message edit validation logic to align with the algorithm for replacement events[^1] described in the Matrix specification.\n\n### Workarounds\nN/A\n\n### References\n* Pull request: https://github.com/matrix-org/matrix-rust-sdk/pull/6454\n\n### For more information\nIf you have any questions or comments about this advisory, please email us at [security at matrix.org](mailto:security@matrix.org).\n\n[^1]: https://spec.matrix.org/unstable/client-server-api/#validity-of-replacement-events","format":"markdown","source":"ghsa"},{"lang":"en","text":"The message edit validation logic in the matrix-sdk-ui crate before 0.16.1 is\nmissing a check: when replacing an encrypted event, the replacement event itself\nis not required to be encrypted. This enables a malicious homeserver\nadministrator (or an actor with equivalent power) to impersonate or spoof\nmessages as if they were sent by a victim user.","format":"markdown","source":"rustsec"}],"published":"2026-06-03T12:00:00.000Z","modified":"2026-10-12T18:00:14.300Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N","score":4.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N","score":4.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N","score":4.9,"rating":"MEDIUM"},{"scorer":"RustSec Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N","score":4.9,"rating":"MEDIUM"}],"cwes":["CWE-345"],"affected":[{"ranges":[{"version":"< 0.16.1","status":"affected"}],"vendor":"matrix-org","product":"matrix-sdk-ui","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.16.1"}],"ecosystem":"crates.io","package":"matrix-sdk-ui","purl":"pkg:cargo/matrix-sdk-ui","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.16.1"}],"ecosystem":"crates.io","package":"matrix-sdk-ui","purl":"pkg:cargo/matrix-sdk-ui","source":"rustsec"}],"references":[{"url":"https://github.com/matrix-org/matrix-rust-sdk/security/advisories/GHSA-h97m-27fx-42rx","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/matrix-org/matrix-rust-sdk/pull/6454","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://github.com/matrix-org/matrix-rust-sdk/releases/tag/matrix-sdk-0.16.1","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0158.html","tags":["advisory","web","x-refsource-misc"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://github.com/matrix-org/matrix-rust-sdk","tags":["package"],"sources":["ghsa"]},{"url":"https://crates.io/crates/matrix-sdk-ui","tags":["package"],"sources":["rustsec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-09-14T16:16:05.439Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-45057","url":"https://www.cve.org/CVERecord?id=CVE-2026-45057","licence":"CVE Terms of Use","modified":"2026-09-14T16:18:19.287Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-h97m-27fx-42rx","url":"https://github.com/advisories/GHSA-h97m-27fx-42rx","licence":"CC-BY-4.0","modified":"2026-06-04T15:00:08.147Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0158","url":"https://rustsec.org/advisories/RUSTSEC-2026-0158.html","licence":"CC0-1.0","modified":"2026-10-12T18:00:14.300Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-45057","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45057","licence":"Public domain","modified":"2026-09-30T19:57:08.043Z"}],"updatedAt":"2026-11-25T22:59:38.147Z","epss":{"score":0.00155,"percentile":0.04868,"date":"2026-12-01T12:00:22.000Z"}}