{"id":"RUSTSEC-2026-0158","summary":"Incomplete message edit validation in matrix-sdk-ui","details":"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.","aliases":["CVE-2026-45057","GHSA-h97m-27fx-42rx"],"modified":"2026-06-04T12:11:27.578299346Z","published":"2026-06-03T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/matrix-sdk-ui"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2026-0158.html"},{"type":"ADVISORY","url":"https://github.com/matrix-org/matrix-rust-sdk/security/advisories/GHSA-h97m-27fx-42rx"}],"affected":[{"package":{"name":"matrix-sdk-ui","ecosystem":"crates.io","purl":"pkg:cargo/matrix-sdk-ui"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.16.1"}]}],"ecosystem_specific":{"affects":{"arch":[],"os":[],"functions":[]},"affected_functions":null},"database_specific":{"cvss":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N","informational":null,"categories":[],"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0158.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N"}]}