{"id":"GHSA-vc7j-h8xg-fv5x","revision":"4caeb2512c184018ade0f7b1fe5767ad","records":[{"revision":"4caeb2512c184018ade0f7b1fe5767ad","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-vc7j-h8xg-fv5x","aliases":["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":"### 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.\n","state":0,"publishedAt":"2023-08-04T17:26:32+00:00","modifiedAt":"2026-09-10T03:49:57.7187979+00:00","affected":[{"ecosystem":"npm","name":"matrix-appservice-bridge","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"4.0.0"},{"kind":"fixed","version":"8.1.2"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"matrix-appservice-bridge","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"9.0.0"},{"kind":"fixed","version":"9.0.1"}]}],"versions":["9.0.0"],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/matrix-org/matrix-appservice-bridge/security/advisories/GHSA-vc7j-h8xg-fv5x","https://nvd.nist.gov/vuln/detail/CVE-2023-38691","https://github.com/matrix-org/matrix-appservice-bridge/commit/4c6723a5e7beda65cdf1ae5dbb882e8beaac8552","https://github.com/matrix-org/matrix-appservice-bridge"],"sourceUrl":"https://github.com/advisories/GHSA-vc7j-h8xg-fv5x","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-vc7j-h8xg-fv5x","identifiers":["GHSA-vc7j-h8xg-fv5x","CVE-2023-38691"]},"retained":false,"historicalAffected":[]}],"coverage":[]}