Read the docs
TI-2023-20040 Aliases CVE-2023-38691GHSA-vc7j-h8xg-fv5x

Improper authentication in matrix-org matrix-appservice-bridge

Priority LOW 29CWE-287Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
Low
Impact type
Security bypass
Confidentiality · integrity · availability
High · None · None
Fix status
Fixed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-287.

Summary

matrix-appservice-bridge provides an API for setting up bridges. Starting in version 4.0.0 and prior to versions 8.1.2 and 9.0.1, a malicious Matrix server can use a foreign user's MXID in an OpenID exchange, allowing a bad actor to impersonate users when using the provisioning API. The library does not check that the servername part of the `sub` parameter (containing the user's *claimed* MXID) is the the same as the servername we are talking to. A malicious actor could spin up a server on any given domain, respond with a `sub` parameter according to the user they want to act as and use the resulting token to perform provisioning requests. Versions 8.1.2 and 9.0.1 contain a patch. As a workaround, disable the provisioning API.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00466 40th percentileScored 2026-11-07
Fix Fixed matrix-appservice-bridge (matrix-org): 8.1.2matrix-appservice-bridge (npm): 8.1.2, 9.0.1

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
matrix-orgmatrix-appservice-bridge4.0.0 to before 8.1.2; = 9.0.08.1.2Patch availableCNA
—matrix-appservice-bridge (npm)4.0.0 to before 8.1.28.1.2Patch availableGHSA-vc7j-h8xg-fv5x
—matrix-appservice-bridge (npm)9.0.0 to before 9.0.19.0.1Patch availableGHSA-vc7j-h8xg-fv5x
  • matrix-appservice-bridge Vendormatrix-org Affected 4.0.0 to before 8.1.2; = 9.0.0 Fixed in 8.1.2 Patch available CNA
  • matrix-appservice-bridge (npm) Vendor— Affected 4.0.0 to before 8.1.2 Fixed in 8.1.2 Patch available GHSA-vc7j-h8xg-fv5x
  • matrix-appservice-bridge (npm) Vendor— Affected 9.0.0 to before 9.0.1 Fixed in 9.0.1 Patch available GHSA-vc7j-h8xg-fv5x

CPE configurations NVD · 2

CPEVersionsRoleVendor
cpe:2.3:a:matrix:matrix-appservice-bridge:*:*:*:*:*:node.js:*:*4.0.0 to before 8.1.2Vulnerablematrix-org
cpe:2.3:a:matrix:matrix-appservice-bridge:9.0.0:*:*:*:*:node.js:*:*9.0.0Vulnerablematrix-org
  • cpe:2.3:a:matrix:matrix-appservice-bridge:*:*:*:*:*:node.js:*:* Versions 4.0.0 to before 8.1.2 Vulnerable ·matrix-org
  • cpe:2.3:a:matrix:matrix-appservice-bridge:9.0.0:*:*:*:*:node.js:*:* Versions 9.0.0 Vulnerable ·matrix-org

Remediation

  • Fix · CNA matrix-appservice-bridge (matrix-org) Fixed in 8.1.2
  • Fix · GHSA-vc7j-h8xg-fv5x matrix-appservice-bridge (npm) Fixed in 8.1.2 Advisory →
  • Fix · GHSA-vc7j-h8xg-fv5x matrix-appservice-bridge (npm) Fixed in 9.0.1 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2023-38691
  2. 2026-10-03 Alias added: GHSA-vc7j-h8xg-fv5x

References

  • TI-2021-12327 Automatic room upgrade handling can be used maliciously to bridge a room non-consentually CVSS 3.1MEDIUM 6.5

Sources