CVE-2025-62800 FastMCP vulnerable to reflected XSS in client's callback page

Medium 5.3 Published Updated

Attackers can execute arbitrary JavaScript in the FastMCP OAuth callback page via reflected XSS, potentially leading to account takeover.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2025-62800?

CVE-2025-62800 is a medium-severity cross-site scripting vulnerability in jlowin fastmcp, published on 28 Oct 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

FastMCP is the standard framework for building MCP applications. Versions prior to 2.13.0 have a reflected cross-site scripting vulnerability in the OAuth client callback page (oauth_callback.py) where unescaped user-controlled values are inserted into the generated HTML, allowing arbitrary JavaScript execution in the callback server origin. The issue is fixed in version 2.13.0.

Weakness: CWE-79

Which versions are affected by CVE-2025-62800?

3 open source packages ship an affected version, including fastmcp. It affects 1 product.

PackageAffectedFixed in
fastmcp PyPIAll versions2.13.0
fastmcp PyPIAll versions2.13.0
fastmcp PyPIAll versions2.13.0

Products include Jlowin Fastmcp.

How do I fix CVE-2025-62800?

Upgrade fastmcp to 2.13.0 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2025-62800 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-62800 exists.

Sources

Also known as GHSA-mxxr-jv3v-6pgc, PYSEC-2026-1364, ROOT-APP-PYPI-CVE-2025-62800.

Is CVE-2025-62800 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free