{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-32659","published":"2021-06-16T19:15:38.830000Z","last_modified":"2026-06-17T03:53:22.010000Z","status":"Modified","cvss":{"version":"3.1","score":4.9,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-306"],"cpes":[{"criteria":"cpe:2.3:a:matrix:matrix-appservice-bridge:*:*:*:*:*:node.js:*:*","part":"a","vendor":"matrix","product":"matrix-appservice-bridge","version_end_excluding":"2.6.1"}],"cpes_truncated":false,"vendors":["matrix"],"products":["matrix/matrix-appservice-bridge"],"epss":{"score":0.00936,"percentile":0.59198,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-35g4-qx3c-vjhx","ecosystem":"npm","name":"matrix-appservice-bridge","purl":"pkg:npm/matrix-appservice-bridge","ranges":[{"introduced":"0","fixed":"2.6.1"}],"versions":[],"versions_truncated":false}],"severity":"medium","priority_score":29,"links":{"html_es":"/es/cve/CVE-2021-32659/","html_en":"/en/cve/CVE-2021-32659/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-32659","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-32659"},"untrusted":{"vendor_name":"Matrix","product_name":"Matrix-appservice-bridge","desc_en":"Matrix-appservice-bridge is the bridging service for the Matrix communication program's application services. In versions 2.6.0 and earlier, if a bridge has room upgrade handling turned on in the configuration (the `roomUpgradeOpts` key when instantiating a new `Bridge` instance.), any `m.room.tombstone` event it encounters will be used to unbridge the current room and bridge into the target room. However, the target room `m.room.create` event is not checked to verify if the `predecessor` field contains the previous room. This means that any malicious admin of a bridged room can repoint the traffic to a different room without the new room being aware. Versions 2.6.1 and greater are patched. As a workaround, disabling the automatic room upgrade handling can be done by removing the `roomUpgradeOpts` key from the `Bridge` class options.","affected":[{"untrusted_vendor":"matrix-org","untrusted_product":"matrix-appservice-bridge","versions":[]}],"references":[{"url":"https://github.com/matrix-org/matrix-appservice-bridge/commit/b69e745584a34fcfd858df33e4631e420da07b9f","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/matrix-org/matrix-appservice-bridge/releases/tag/2.6.1","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/matrix-org/matrix-appservice-bridge/security/advisories/GHSA-35g4-qx3c-vjhx","tags":["Mitigation","Third Party Advisory"]}]}}