mcp is vulnerable to Cross-site Scripting (XSS)
42
CVE Score
Medium
Cross-site Scripting (XSS)
Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via JSON-RPC Request ID Reflection due to missing validation on string-based request IDs in the underlying json_rpc_handler dependency; this vulnerability occurs because user-supplied input within the id field is directly reflected in HTTP responses, allowing an attacker to craft malicious requests containing HTML or JavaScript payloads in the ID, which are then executed in a victim's browser if the response is rendered without proper output encoding or Content-Type hardening.
Upgrade the mcp library to the patch version.
You are affected if you are using a version that falls within the vulnerable range.
0.1.0 - 0.4.0
Fixed in 0.5.0mcp is vulnerable to Cross-site Scripting (XSS) in versions 0.1.0 - 0.4.0.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.