The deprecated `oidc-provider` plugin and the `mcp` plugin fail to validate the scheme of `redirect uris` during OAuth client registration. An attacker can register a client using a `javascript:` URI via the `POST /oauth2/register` endpoint. This malicious URI is stored and subsequently returned unchanged in the consent response of the `GET /oauth2/authorize` endpoint. If the application's consent page assigns the returned `redirectURI` variable to a browser navigation target (such as `window.location.href`, `location.assign`, or `location.replace`), the attacker's JavaScript executes within the authorization server's origin. This stored DOM cross-site scripting (XSS) allows the attacker to access session-scoped endpoints, such as `/api/auth/get-session`, leading to session exposure and account takeover.