CVE-2026-45057
JSON

4.9medium

matrix-sdk-ui: Incomplete edit validation

Severity
4.9medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.15% (higher than 4% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-h97m-27fx-42rxRUSTSEC-2026-0158

Description

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.

Affected

Product or packageVersionsReported by
matrix-org matrix-sdk-ui< 0.16.1CVE List
matrix-sdk-ui (crates.io)before 0.16.1, from 0.0.0-0 before 0.16.1GitHub Advisory Database, RustSec Advisory Database

All scores

GitHub_M4.9medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N
GitHub4.9medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N
RustSec Advisory Database4.9medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N

Classification

CWE-345

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
Impact

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.

Patches

matrix-sdk-ui 0.16.1 fixes the message edit validation logic to align with the algorithm for replacement events1 described in the Matrix specification.

Workarounds

N/A

References
For more information

If you have any questions or comments about this advisory, please email us at security at matrix.org.

Footnotes

  1. https://spec.matrix.org/unstable/client-server-api/#validity-of-replacement-events ↩

RustSec Advisory Database

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

Sources

SourceRecordLicence
CVE ListCVE-2026-45057 changed 2026-09-14CVE Terms of Use
GitHub Advisory DatabaseGHSA-h97m-27fx-42rx changed 2026-06-04CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2026-0158 changed 2026-10-12CC0-1.0
NVDCVE-2026-45057 changed 2026-09-30Public domain