{"id":"CVE-2023-38691","aliases":["CVE-2023-38691","GHSA-vc7j-h8xg-fv5x"],"related":[],"kind":"vulnerability","state":"published","title":"matrix-appservice-bridge doesn't verify the sub parameter of an openId token exhange, allowing unauthorized access to provisioning APIs","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nA 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.\n\n### Details\n\nThe library does not check that the servername part of the `sub` parameter (containing the user's *claimed* MXID) is 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.\n\n### Workarounds\n\nDisable the provisioning API. If the bridge does not use the provisioning API, you are not vulnerable.","format":"markdown","source":"ghsa"}],"published":"2023-08-04T16:34:54.312Z","modified":"2026-09-10T03:49:57.718Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N","score":5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N","score":5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N","score":5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-287"],"affected":[{"ranges":[{"version":">= 4.0.0, < 8.1.2","status":"affected"},{"version":"= 9.0.0","status":"affected"}],"vendor":"matrix-org","product":"matrix-appservice-bridge","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"4.0.0","status":"affected","fixed":"8.1.2"}],"ecosystem":"npm","package":"matrix-appservice-bridge","purl":"pkg:npm/matrix-appservice-bridge","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"9.0.0","status":"affected","fixed":"9.0.1"}],"ecosystem":"npm","package":"matrix-appservice-bridge","purl":"pkg:npm/matrix-appservice-bridge","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"4.0.0","fixed":"8.1.2"},{"status":"affected","version":"9.0.0"}],"vendor":"matrix","product":"matrix-appservice-bridge","cpe":"cpe:2.3:a:matrix:matrix-appservice-bridge:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/matrix-org/matrix-appservice-bridge/security/advisories/GHSA-vc7j-h8xg-fv5x","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/matrix-org/matrix-appservice-bridge/commit/4c6723a5e7beda65cdf1ae5dbb882e8beaac8552","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-38691","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/matrix-org/matrix-appservice-bridge","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-10-07T13:01:18.486Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-38691","url":"https://www.cve.org/CVERecord?id=CVE-2023-38691","licence":"CVE Terms of Use","modified":"2024-10-07T13:01:29.642Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-vc7j-h8xg-fv5x","url":"https://github.com/advisories/GHSA-vc7j-h8xg-fv5x","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:57.718Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-38691","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-38691","licence":"Public domain","modified":"2026-06-17T06:10:57.813Z"}],"updatedAt":"2026-11-25T22:58:26.760Z","epss":{"score":0.00466,"percentile":0.4201,"date":"2026-12-01T12:00:22.000Z"}}