Incomplete message edit validation in matrix-sdk-ui
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.
- Products
- matrix-sdk-ui
- Affected versions
- Not specified
- Fixed versions
- 0.16.1
- CVEs
- CVE-2026-45057
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 30 Oct 2026, 08:44 UTC · Revision 1
Source evidence
Incomplete message edit validation in matrix-sdk-ui
core-osv · Original sourcePublished 3 Jun 2026, 12:00 UTC
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.
osv:RUSTSEC-2026-0158
matrix-sdk-ui
Fixed versions: 0.16.1
Complete source record
{
"id": "5d5d301c941187a062582536ebb2d5a2d2bdb60c2688939e2136158976b50727",
"url": "https://osv.dev/vulnerability/RUSTSEC-2026-0158",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Incomplete message edit validation in matrix-sdk-ui",
"summary": "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.",
"evidence": "osv:RUSTSEC-2026-0158",
"products": [
{
"name": {
"value": "matrix-sdk-ui",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "0.16.1",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
}
],
"severity": "medium",
"structured": {
"id": "RUSTSEC-2026-0158",
"aliases": [
"CVE-2026-45057",
"GHSA-h97m-27fx-42rx",
"RUSTSEC-2026-0158"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N"
}
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0.0.0-0"
},
{
"fixed": "0.16.1"
}
]
}
],
"package": {
"name": "matrix-sdk-ui",
"purl": "pkg:cargo/matrix-sdk-ui",
"ecosystem": "crates.io"
},
"database_specific": {
"cvss": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N",
"source": "https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0158.json",
"categories": [],
"informational": null
},
"ecosystem_specific": {
"affects": {
"os": [],
"arch": [],
"functions": []
},
"affected_functions": null
}
}
],
"modified": "2026-10-12T18:00:14.300850042Z",
"provider": "osv",
"references": [
"https://crates.io/crates/matrix-sdk-ui",
"https://rustsec.org/advisories/RUSTSEC-2026-0158.html",
"https://github.com/matrix-org/matrix-rust-sdk/pull/6454"
],
"provider_metadata": {
"license": "CC0-1.0"
}
},
"related_cves": [
{
"value": "CVE-2026-45057",
"evidence": "/aliases"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 306453,
"published_at": "2026-06-03T12:00:00+00:00"
}