{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-38691","id":"CVE-2023-38691","title":"matrix-appservice-bridge doesn't verify the sub parameter of an openId token exhange, allowing unauthorized access to provisioning APIs","description":"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","descriptionLong":"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.","published":"2023-08-04T16:34:54.312Z","updated":"2026-10-28T02:30:38.480332484Z","reserved":"2023-07-24T16:19:28.364Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N","rating":"medium","source":"github.com"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["matrix-org matrix-appservice-bridge"],"affectedProducts":[{"vendor":"matrix-org","product":"matrix-appservice-bridge","defaultStatus":null,"versions":[{"version":">= 4.0.0, < 8.1.2","status":"affected"},{"version":"= 9.0.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"matrix-appservice-bridge","purl":"pkg:npm/matrix-appservice-bridge","ranges":[">=4.0.0 <8.1.2",">=9.0.0 <9.0.1"],"fixed":["8.1.2","9.0.1"],"advisory":"GHSA-vc7j-h8xg-fv5x"}],"cwes":["CWE-287"],"aliases":["GHSA-vc7j-h8xg-fv5x"],"references":[{"url":"https://github.com/matrix-org/matrix-appservice-bridge/security/advisories/GHSA-vc7j-h8xg-fv5x","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/matrix-org/matrix-appservice-bridge/commit/4c6723a5e7beda65cdf1ae5dbb882e8beaac8552","tags":["x_refsource_MISC","x_transferred","Patch","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/38xxx/CVE-2023-38691.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-38691","tags":["advisory"]},{"url":"https://github.com/matrix-org/matrix-appservice-bridge","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00466,"epssPercentile":0.41074,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-38691","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-38691","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-38691","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-vc7j-h8xg-fv5x","ok":true,"note":"GHSA-vc7j-h8xg-fv5x"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2023-38691","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}