{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "1.11.112"
              }
            ],
            "source": [
              "DESCRIPTION",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "87d40ab0e0d38a064912ee73ffaa8684cb1e79b1"
            },
            {
              "fixed": "8e9a43d70c90e6a3b110cd0a377296079e4c81f5"
            }
          ],
          "repo": "https://github.com/element-hq/element-web",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-m6c8-98f4-75rr"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-20"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/59xxx/CVE-2025-59161.json"
  },
  "details": "Element Web is a Matrix web client built using the Matrix React SDK. Element Web and Element Desktop before version 1.11.112 have insufficient validation of room predecessor links, allowing a remote attacker to attempt to impermanently replace a room's entry in the room list with an unrelated attacker-supplied room. While the effect of this is temporary, it may still confuse users into acting on incorrect assumptions. The issue has been patched and users should upgrade to 1.11.112. A reload/refresh will fix the incorrect room list state, removing the attacker's room and restoring the original room.",
  "id": "CVE-2025-59161",
  "modified": "2026-07-08T05:36:51.525833847Z",
  "published": "2025-09-16T16:44:15.660Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/59xxx/CVE-2025-59161.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/element-hq/element-web/security/advisories/GHSA-m6c8-98f4-75rr"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-59161"
    },
    {
      "type": "FIX",
      "url": "https://github.com/element-hq/element-web/commit/8e9a43d70c90e6a3b110cd0a377296079e4c81f5"
    }
  ],
  "schema_version": "1.7.5",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:U",
      "type": "CVSS_V4"
    }
  ],
  "summary": "In Element Web and Element Desktop, a malicious room can hide an unrelated room and cause it to be left when the malicious room is left"
}