matrix-sdk-ui: Incomplete edit validation
Key facts
- Attack vector
- Network
- Privileges required
- High
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- None · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-345.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| matrix-org | matrix-sdk-ui | before 0.16.1 | 0.16.1 | Patch available | CNA |
| — | matrix-sdk-ui (crates.io) | before 0.16.1 | 0.16.1 | Patch available | GHSA-h97m-27fx-42rx |
- matrix-sdk-ui Vendormatrix-org Affected before 0.16.1 Fixed in 0.16.1 Patch available CNA
- matrix-sdk-ui (crates.io) Vendor— Affected before 0.16.1 Fixed in 0.16.1 Patch available GHSA-h97m-27fx-42rx
Remediation
- Fix · CNA matrix-sdk-ui (matrix-org) Fixed in 0.16.1
- Fix · GHSA-h97m-27fx-42rx matrix-sdk-ui (crates.io) Fixed in 0.16.1 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2026-45057
- 2026-10-03 Alias added: GHSA-h97m-27fx-42rx
References
Other 5
- 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
More matrix-org vulnerabilities
- TI-2023-20035 Sydent does not verify email server certificates CVSS 3.1CRITICAL 9.3
- TI-2026-45046 Dendrite 0.13.8 SSRF via Unauthenticated Legacy Media Download Endpoint CVSS 4.0MEDIUM 6.9
- TI-2026-45045 Dendrite 0.13.8 Improper Authorization via POST account/3pid/delete Endpoint CVSS 4.0HIGH 7.1
- TI-2026-45047 Dendrite 0.13.8 syncapi /context Endpoint Post-Leave State Exposure CVSS 4.0MEDIUM 5.3
- TI-2023-15617 Synapse Outgoing federation to specific hosts can be disabled by sending malicious invites CVSS 3.1MEDIUM 5.0
- TI-2023-20039 matrix-appservice-irc IRC command injection via admin commands containing newlines CVSS 3.1CRITICAL 9.8
Sources
- CVE-2026-45057 · CVE Program
- CVE-2026-45057 · NVD
- FIRST EPSS
- GHSA-h97m-27fx-42rx · GitHub Advisory Database · CC BY 4.0
- CVE-2026-45057 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences