RUSTSEC-2026-0158

Source
https://rustsec.org/advisories/RUSTSEC-2026-0158
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0158.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2026-0158
Aliases
Published
2026-06-03T12:00:00Z
Modified
2026-06-04T12:11:27.578299346Z
Severity
  • 4.9 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
Summary
Incomplete message edit validation in matrix-sdk-ui
Details

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.

Database specific
{
    "license": "CC0-1.0"
}
References

Affected packages

crates.io / matrix-sdk-ui

Package

Name
matrix-sdk-ui
View open source insights on deps.dev
Purl
pkg:cargo/matrix-sdk-ui

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0
Fixed
0.16.1

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "os": [],
        "functions": [],
        "arch": []
    }
}

Database specific

cvss
"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N"
informational
null
categories
[]
source
"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0158.json"