Skip to content
XSS Disclosed report Intermediate

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

matured_kazama Follow

Originally disclosed on HackerOne

  • Triaged in 9 days
  • Fixed in 26 days
  • Paid in 19 days
  • Disclosed after 4 months

Summary by the program

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 .

Summary by the researcher

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

The original report as published on HackerOne, by matured_kazama. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is known

A low-severity XSS bug in Cloudflare Public Bug Bounty. HackerOne made it public on 16 December 2025.

About XSS

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by matured_kazama

View all

6 more disclosed reports, best first.

More from Cloudflare Public Bug Bounty

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.