CVE-2026-45057
MEDIUM 4.9CVSS 3.1matrix-sdk-ui: Incomplete edit validation
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.
- Published
- 11 Sep 2026
- Last modified
- 12 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-345
- Also known as
- GHSA-h97m-27fx-42rxRUSTSEC-2026-0158
- Sources
- NVDJSONOSV GHSA-h97m-27fx-42rxJSONOSV RUSTSEC-2026-0158JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 4.9 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.9 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N |
| OSV | RustSec | CVSS 3.1 | MEDIUM 4.9 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | matrix-sdk-ui | < 0.16.1 | 0.16.1 |
| OSV | crates.io | matrix-sdk-ui | >= 0.0.0-0, < 0.16.1 | 0.16.1 |
References
- https://github.com/matrix-org/matrix-rust-sdk/pull/6454 · WEB
- https://github.com/matrix-org/matrix-rust-sdk/releases/tag/matrix-sdk-0.16.1 · WEB
- https://github.com/matrix-org/matrix-rust-sdk/security/advisories/GHSA-h97m-27fx-42rx · WEB
- https://rustsec.org/advisories/RUSTSEC-2026-0158.html · WEB, ADVISORY
- https://github.com/matrix-org/matrix-rust-sdk · PACKAGE
- https://crates.io/crates/matrix-sdk-ui · PACKAGE
History
- 25 Nov 2026 21:05 UTC · NVD: first stored (published 11 Sep 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 3 Jun 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 4 Jun 2026)