Vulnerability GHSA-h97m-27fx-42rx

Medium Risk
MEDIUM RISK
CVSS Score: 4.9
Score Range: 4.0–6.9
Medium severity vulnerabilities (CVSS 4.0–6.9). Important issues that meaningfully reduce security confidence.
4 months ago
June 04, 2026 at 02:50 PM UTC
matrix-sdk-ui: Incomplete edit validation
0.7.0 - 0.16.0
0.7.0 - 0.16.0

Summary

matrix-sdk-ui: Incomplete edit validation

Details

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

For more information

If you have any questions or comments about this advisory, please email us at security at matrix.org.

Impacted packages

Timeline

Published
4 months ago
June 04, 2026 at 02:50 PM UTC
Fixed (0.16.1)
5 months ago
May 08, 2026 at 02:03 PM UTC
Last Modified
4 months ago
June 04, 2026 at 03:00 PM UTC