ADVISORIES

RustSec Advisory Database

RUSTSEC-2026-0158

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 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.

Affected packages

EcosystemPackageAffected versions
crates.iomatrix-sdk-ui
From 0.0.0-0 before 0.16.1 (fixed in 0.16.1)

References