{"schemaVersion":3,"id":"CVE-2023-38691","aliases":["GHSA-vc7j-h8xg-fv5x"],"status":"published","duplicateOf":null,"title":null,"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 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.","dates":{"published":"2023-08-04T16:34:54.312Z","modified":"2024-10-07T13:01:29.642Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N","exploitability":7.9,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00466,"percentile":0.39023,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00466},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00466,"percentile":0.39023}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00466,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00466,"percentile":0.39023}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-287","name":"Improper Authentication","description":"When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/287.html"}],"affected":[{"vendor":"matrix-org","product":"matrix-appservice-bridge","name":"matrix-appservice-bridge","label":"matrix-appservice-bridge","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 4.0.0, < 8.1.2","noFixRecorded":false,"fixedIn":null},{"text":"= 9.0.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.0.0, < 8.1.2 | = 9.0.0","eol":null,"hubHref":"/vendor/matrix-org/matrix-appservice-bridge"},{"vendor":"matrix","product":"matrix-appservice-bridge","name":"matrix-appservice-bridge","label":"matrix-appservice-bridge","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 4.0.0, < 8.1.2","noFixRecorded":false,"fixedIn":null},{"text":"9.0.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.0.0, < 8.1.2 | 9.0.0","eol":null,"hubHref":"/vendor/matrix/matrix-appservice-bridge"},{"vendor":"Npm","product":"matrix-appservice-bridge","name":"matrix-appservice-bridge","label":"matrix-appservice-bridge","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/matrix-appservice-bridge","purlType":"npm","versions":[{"text":"≥ 4.0.0, < 8.1.2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 9.0.0, < 9.0.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.0.0, < 8.1.2 | ≥ 9.0.0, < 9.0.1","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/matrix-org/matrix-appservice-bridge/security/advisories/GHSA-vc7j-h8xg-fv5x","label":"github.com/matrix-org/matrix-appservice-bridge/security/advisories/GHSA-vc7j-h8xg-fv5x","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Third Party Advisory"]},{"url":"https://github.com/matrix-org/matrix-appservice-bridge/commit/4c6723a5e7beda65cdf1ae5dbb882e8beaac8552","label":"github.com/matrix-org/matrix-appservice-bridge/commit/4c6723a5e7beda65cdf1ae5dbb882e8beaac8552","hostname":"github.com","tags":["X Refsource MISC","WEB","Patch"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-38691","label":"nvd.nist.gov/vuln/detail/CVE-2023-38691","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/matrix-org/matrix-appservice-bridge","label":"github.com/matrix-org/matrix-appservice-bridge","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2023-08-04T16:34:54.312Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-10-07T13:01:29.642Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":26,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T19:15:06.421Z","stale":false,"partial":false}}