CVE-2026-45057: matrix-sdk-ui Incomplete Edit Validation Vulnerability

MODERATE
Advisory Identifier: GHSA-h97m-27fx-42rx
CVSS 4.9
CWE-345
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2026-45057
GHSA Identifier GHSA-h97m-27fx-42rx
Severity MODERATE
CVSS v3.1 Base Score 4.9
CWE Classification CWE-345: Insufficient Verification of Data Authenticity
Affected Product matrix-sdk-ui
Package Ecosystem crates.io
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (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.

matrix-sdk-ui fixed: 0.16.1
Upgrade matrix-sdk-ui to 0.16.1
Verify Direct and Transitive Dependencies

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

### 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 events[^1] described in the Matrix specification. ### Workarounds N/A ### References * Pull request: https://github.com/matrix-org/matrix-rust-sdk/pull/6454 ### For more information If you have any questions or comments about this advisory, please email us at [security at matrix.org](mailto:security@matrix.org). [^1]: https://spec.matrix.org/unstable/client-server-api/#validity-of-replacement-events

CVE-2026-45057 Affected matrix-sdk-ui Versions

1 component(s)
Fixed Versions:
0.16.1
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?
CVE-2026-45057 is a security vulnerability in matrix-sdk-ui involving Incomplete edit validation under CWE-345: Insufficient Verification of Data Authenticity.
Which matrix-sdk-ui versions are affected?
Affected versions include releases prior to 0.16.1 across affected packages: matrix-sdk-ui.
What version fixes CVE-2026-45057?
Upgrading to 0.16.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is matrix-sdk-ui affected?
Yes, matrix-sdk-ui is affected in releases prior to 0.16.1. Upgrade your dependency to 0.16.1 or later.
What is the CVSS score of CVE-2026-45057?
CVE-2026-45057 has a CVSS v3.1 base score of 4.9 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2026-45057?
CVE-2026-45057 is classified under CWE-345: Insufficient Verification of Data Authenticity (The product does not sufficiently verify the origin or authenticity of data, in a way that causes it to accept invalid data.).
How can I check crates.io dependencies for CVE-2026-45057?
Run the dependency tree command: 'inspect dependencies for matrix-sdk-ui'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}