Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-62800: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in jlowin fastmcp

0
Medium
VulnerabilityCVE-2025-62800cvecve-2025-62800cwe-79
Published: Tue Oct 28 2025 (10/28/2025, 21:34:40 UTC)
Source: CVE Database V5
Vendor/Project: jlowin
Product: fastmcp

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.

AI-Powered Analysis

AILast updated: 10/28/2025, 22:04:30 UTC

Technical Analysis

CVE-2025-62800 identifies a reflected cross-site scripting (XSS) vulnerability in the FastMCP framework, a standard platform for building MCP applications. The vulnerability exists in versions prior to 2.13.0 within the OAuth client callback page (oauth_callback.py). The root cause is the improper neutralization of user-supplied input, which is inserted into the generated HTML without adequate escaping or sanitization. This allows an attacker to craft malicious URLs that, when visited by a user, execute arbitrary JavaScript code in the context of the callback server's origin. The vulnerability is classified under CWE-79, reflecting improper input handling during web page generation. The CVSS 4.0 vector indicates the attack can be performed remotely over the network (AV:N) with low attack complexity (AC:L), requires no privileges (PR:N), but does require user interaction (UI:P). The impact is limited to the confidentiality and integrity of user sessions and data accessible via the browser, with no direct impact on availability. No known exploits have been reported in the wild as of the publication date, but the risk remains significant for applications relying on FastMCP for OAuth workflows. The vulnerability is resolved in version 2.13.0 by properly escaping user inputs before rendering them in the HTML response. Given the nature of OAuth callback pages, exploitation could lead to session hijacking, phishing, or unauthorized actions performed on behalf of users.

Potential Impact

For European organizations, the impact of this vulnerability primarily concerns web applications utilizing the FastMCP framework for OAuth authentication flows. Successful exploitation could allow attackers to execute arbitrary scripts in users' browsers, potentially leading to session hijacking, theft of OAuth tokens, or redirection to malicious sites. This compromises user confidentiality and integrity, undermining trust in authentication mechanisms. Organizations handling sensitive user data or providing critical services via FastMCP-based applications face increased risk of data breaches or account compromise. Additionally, regulatory frameworks such as GDPR impose strict requirements on protecting user data, and exploitation of this vulnerability could lead to compliance violations and reputational damage. The reflected XSS nature means attacks require user interaction, often through phishing or social engineering, which could be leveraged in targeted campaigns against European enterprises. The medium CVSS score reflects moderate risk, but the widespread use of OAuth in modern web services elevates the potential impact on identity and access management systems.

Mitigation Recommendations

European organizations should immediately upgrade all FastMCP instances to version 2.13.0 or later to apply the official fix. In parallel, implement strict input validation and output encoding on all user-controllable parameters, especially those involved in OAuth callback URLs. Deploy Content Security Policy (CSP) headers to restrict the execution of unauthorized scripts and reduce the impact of potential XSS attacks. Conduct thorough security testing of OAuth workflows, including fuzzing and penetration testing focused on injection points. Educate users and administrators about phishing risks associated with malicious URLs exploiting this vulnerability. Monitor web server logs for suspicious callback requests containing unusual or encoded payloads. Where possible, implement multi-factor authentication (MFA) to mitigate the impact of session hijacking. Finally, maintain an incident response plan tailored to web application attacks to rapidly detect and respond to exploitation attempts.

Need more detailed analysis?Get Pro

Technical Details

Data Version
5.1
Assigner Short Name
GitHub_M
Date Reserved
2025-10-22T18:55:48.012Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 69013a71995b0464d953776e

Added to database: 10/28/2025, 9:49:37 PM

Last enriched: 10/28/2025, 10:04:30 PM

Last updated: 10/29/2025, 12:38:02 AM

Views: 4

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need enhanced features?

Contact root@offseq.com for Pro access with improved analysis and higher rate limits.

Latest Threats