CVE-2026-45057: matrix-sdk-ui Incomplete Edit Validation Vulnerability
MODERATECVE-2026-45057 is a MODERATE (CVSS 4.9) incomplete edit validation vulnerability (CWE-345: Insufficient Verification of Data Authenticity) affecting matrix-sdk-ui libraries in the crates.io ecosystem. The issue involves incomplete edit validation. Remediation is available by upgrading affected packages to version 0.16.1.
CVE-2026-45057 at a Glance
Security Impact
CVSS: 4.9
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N).
How to Fix CVE-2026-45057
To remediate this vulnerability, upgrade all affected matrix-sdk-ui dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade matrix-sdk-ui to 0.16.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for matrix-sdk-ui
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-45057, inspect your project dependencies for matrix-sdk-ui:
inspect dependencies for matrix-sdk-ui
Analyze the terminal output to locate any version of matrix-sdk-ui in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.16.1), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-345: Insufficient Verification of Data Authenticity, where the product does not sufficiently verify the origin or authenticity of data, in a way that causes it to accept invalid data. In matrix-sdk-ui, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-45057 Affected matrix-sdk-ui Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
matrix-sdk-ui
|
crates.io |
< 0.16.1
|
0.16.1
|
References
Frequently Asked Questions
What is CVE-2026-45057?
Which matrix-sdk-ui versions are affected?
What version fixes CVE-2026-45057?
Is matrix-sdk-ui affected?
What is the CVSS score of CVE-2026-45057?
What CWE is associated with CVE-2026-45057?
How can I check crates.io dependencies for CVE-2026-45057?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-h97m-27fx-42rx",
"modified" : "2026-06-04T14:50:47Z",
"published" : "2026-06-04T14:50:47Z",
"aliases" : [ "CVE-2026-45057" ],
"summary" : "matrix-sdk-ui: Incomplete edit validation",
"details" : "### Impact\nThe 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.\n\n### Patches\n`matrix-sdk-ui` 0.16.1 fixes the message edit validation logic to align with the algorithm for replacement events[^1] described in the Matrix specification.\n\n### Workarounds\nN/A\n\n### References\n* Pull request: https://github.com/matrix-org/matrix-rust-sdk/pull/6454\n\n### For more information\nIf you have any questions or comments about this advisory, please email us at [security at matrix.org](mailto:security@matrix.org).\n\n[^1]: https://spec.matrix.org/unstable/client-server-api/#validity-of-replacement-events",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "matrix-sdk-ui"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.16.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/matrix-org/matrix-rust-sdk/security/advisories/GHSA-h97m-27fx-42rx"
}, {
"type" : "WEB",
"url" : "https://github.com/matrix-org/matrix-rust-sdk/pull/6454"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/matrix-org/matrix-rust-sdk"
}, {
"type" : "WEB",
"url" : "https://github.com/matrix-org/matrix-rust-sdk/releases/tag/matrix-sdk-0.16.1"
}, {
"type" : "WEB",
"url" : "https://rustsec.org/advisories/RUSTSEC-2026-0158.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-345" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-06-04T14:50:47Z",
"nvd_published_at" : null
}
}