HexBrain

Cloudflare Public Bug Bounty · Report #3316910

Second-Order XSS via javascript protocol in MCP Server Portal Apps leads to ATO

Validstatus
lowseverity
50upvotes
16 Dec 2025disclosed

Summary

Missing sanitization of the redirect_uri parameter led to a XSS vulnerability in MCP server portals. An attacker can craft a malicious redirect_uri containing JavaScript code, obtain a client_id for this malicious URI, and then reuse it when a victim has an active session (CF_Authorization cookie exists) on the /authorize endpoint to execute arbitrary JavaScript. A detailed writeup by the reporter can be found here. We recommend upgrading workers-oauth-provider to the latest version and following the best practices in Securing MCP Servers .

My side of the story: https://kazama.in/mcp-server-portal-xss-to-ato

How it was found

The write-up for this report has not been downloaded yet, or the program disclosed it without one. Read it on HackerOne.

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original