# CVE-2026-45057: matrix-sdk-ui: Incomplete edit validation

- Priority: **Routine**
- Reason: Not severe (CVSS 4.9, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-09-11 · Modified: 2026-09-14
- Aliases: GHSA-h97m-27fx-42rx, RUSTSEC-2026-0158
- Record: https://cvemate.com/vulnerability/CVE-2026-45057 · JSON: https://cvemate.com/vulnerability/CVE-2026-45057/json

## Description

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

## Signals

- CVSS: 4.9 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N
- EPSS: 0.155%, percentile 4.819%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- Crates.Io matrix-sdk-ui (Crates.Io): \< 0.16.1 \| ≥ 0.0.0-0, \< 0.16.1
- matrix-org matrix-sdk-ui: \< 0.16.1

## 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/releases/tag/matrix-sdk-0.16.1>
- <https://rustsec.org/advisories/RUSTSEC-2026-0158.html>
- <https://github.com/matrix-org/matrix-rust-sdk>
- <https://crates.io/crates/matrix-sdk-ui>

---

Data as of 2026-12-05T10:41:34.690Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
