CVE-2026-45057: matrix-sdk-ui: Incomplete edit validation
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.
References
- github.com/advisories/GHSA-h97m-27fx-42rx
- github.com/matrix-org/matrix-rust-sdk/pull/6454
- github.com/matrix-org/matrix-rust-sdk/releases/tag/matrix-sdk-0.16.1
- github.com/matrix-org/matrix-rust-sdk/security/advisories/GHSA-h97m-27fx-42rx
- nvd.nist.gov/vuln/detail/CVE-2026-45057
- rustsec.org/advisories/RUSTSEC-2026-0158.html
Code Behaviors & Features
Detect and mitigate CVE-2026-45057 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →