{"id":"GHSA-h97m-27fx-42rx","revision":"76cbb928a56d4d6a948f15b1de9eb1d0","records":[{"revision":"76cbb928a56d4d6a948f15b1de9eb1d0","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"GHSA-h97m-27fx-42rx","aliases":["CVE-2026-45057","RUSTSEC-2026-0158"],"title":"matrix-sdk-ui: Incomplete edit validation","description":"### 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","state":0,"publishedAt":"2026-06-04T14:50:47+00:00","modifiedAt":"2026-06-04T15:00:08.1474732+00:00","affected":[{"ecosystem":"crates.io","name":"matrix-sdk-ui","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.16.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/matrix-org/matrix-rust-sdk/security/advisories/GHSA-h97m-27fx-42rx","https://github.com/matrix-org/matrix-rust-sdk/pull/6454","https://github.com/matrix-org/matrix-rust-sdk","https://github.com/matrix-org/matrix-rust-sdk/releases/tag/matrix-sdk-0.16.1","https://rustsec.org/advisories/RUSTSEC-2026-0158.html"],"sourceUrl":"https://github.com/advisories/GHSA-h97m-27fx-42rx","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-h97m-27fx-42rx","identifiers":["GHSA-h97m-27fx-42rx","CVE-2026-45057","RUSTSEC-2026-0158"]},"retained":false,"historicalAffected":[]}],"coverage":[]}