Insecure Permissions Affecting matrix-appservice-bridge package, versions <2.6.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.14% (51st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-MATRIXAPPSERVICEBRIDGE-1311005
  • published17 Jun 2021
  • disclosed17 Jun 2021
  • creditUnknown

Introduced: 17 Jun 2021

CVE-2021-32659  (opens in a new tab)
CWE-358  (opens in a new tab)

How to fix?

Upgrade matrix-appservice-bridge to version 2.6.1 or higher.

Overview

matrix-appservice-bridge is a Bridging infrastructure for Matrix Application Services

Affected versions of this package are vulnerable to Insecure Permissions. 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.

CVSS Scores

version 3.1