# CVE-2026-58497 - Uni-CLI: Legacy HTTP MCP transport accepted browser-originated localhost requests

DevFeed: [CVE-2026-58497 - Uni-CLI: Legacy HTTP MCP transport accepted browser-originated localhost requests](<https://devfeed.tech/articles/cve-2026-58497-uni-cli-legacy-http-mcp-transport-accepted-browser-originated-localhost-requests-98331.md>)

Original publisher: [Read original article](<https://cvefeed.io/vuln/detail/CVE-2026-58497>)

Author: CVEFEED.io; github.com

Published: 2026-10-23T15:17:34Z

Content type: news

Language: en

Sources: [Latest High/Critical Vulnerabilitiy Feed](<https://devfeed.tech/sources/latest-high-critical-vulnerabilitiy-feed.md>)

Topics: [Cross-origin resource sharing (CORS)](<https://devfeed.tech/topics/cors.md>), [frontend security](<https://devfeed.tech/topics/frontend-security.md>), [Remote Procedure Call (RPC)](<https://devfeed.tech/topics/rpc.md>), [HTTP](<https://devfeed.tech/topics/http.md>)

Tags: [2026](<https://devfeed.tech/tags/2026.md>), [browser](<https://devfeed.tech/tags/browser.md>), [cli](<https://devfeed.tech/tags/cli.md>), [cors](<https://devfeed.tech/tags/cors.md>), [cve](<https://devfeed.tech/tags/cve.md>), [cve-2026-58497](<https://devfeed.tech/tags/cve-2026-58497.md>), [http](<https://devfeed.tech/tags/http.md>), [legacy](<https://devfeed.tech/tags/legacy.md>), [localhost](<https://devfeed.tech/tags/localhost.md>), [mcp](<https://devfeed.tech/tags/mcp.md>), [transport](<https://devfeed.tech/tags/transport.md>)

## AI overview

Before Uni-CLI 0.225.2, its legacy JSON-RPC-over-HTTP MCP transport accepted requests on loopback without checking browser Origin headers. A malicious webpage could send a simple POST to the local `/mcp` endpoint and, if the user had started the local MCP HTTP transport, invoke tools through the server. The Streamable HTTP transport already checked this browser-to-localhost boundary; the legacy stateless path did not. The issue is patched in 0.225.2 and does not change Uni-CLI's local-code-execution trust model.

## Source excerpt

CVE ID :CVE-2026-58497 Published : Oct. 23, 2026, 3:17 p.m. | 4 hours, 25 minutes ago Description :Uni-CLI gives people and agents one command interface for websites, browsers, desktop applications, local tools, and MCP. Prior to version 0.225.2, Uni-CLI exposed the legacy JSON-RPC-over-HTTP MCP transport on loopback without validating browser Origin headers before routing requests. A malicious web page could send a CORS simple POST request, such as text/plain, to the local /mcp endpoint and deliver a JSON-RPC body to the dispatcher. If the user had started the local MCP HTTP transport, that page could drive tools/call requests against the user's local Uni-CLI server. The Streamable HTTP transport already enforced this browser-to-localhost boundary. The legacy stateless HTTP path did not, so the two HTTP transports had drifted. This issue is about the browser-to-localhost boundary; it does not change Uni-CLI's local-code-execution trust model. This issue has been patched in version 0.225.2. Severity: 8.6 | HIGH Visit the link for more details, such as CVSS details, affected products, timeline, and more...