{"id":"CVE-2026-58497","aliases":["CVE-2026-58497","GHSA-v3f4-w7r7-v3hm"],"related":[],"kind":"vulnerability","state":"published","title":"Uni-CLI: Legacy HTTP MCP transport accepted browser-originated localhost requests","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"## Impact\n\nUni-CLI versions before 0.225.2 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.\n\nThe 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.\n\n## Patches\n\nVersion 0.225.2 fixes the issue by moving the Origin policy into a shared guard and applying it before routing in both HTTP transports. Non-loopback browser Origins are rejected with HTTP 403 before health, OAuth, or /mcp dispatch runs. Non-browser clients that omit Origin remain supported.\n\n## Workarounds\n\nUpgrade to 0.225.2 or later. If upgrading is not immediately possible, do not expose the legacy HTTP MCP transport to browser-originated traffic; use the default stdio transport or the Streamable HTTP transport instead.\n\n## Credits\n\nReported privately by Ryan Vonbrubeck ([@dodge1218](https://github.com/dodge1218)).","format":"markdown","source":"ghsa"}],"published":"2026-06-19T21:43:09.000Z","modified":"2026-10-24T02:56:07.901Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","score":8.6,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","score":8.6,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","rating":"HIGH"}],"cwes":["CWE-346","CWE-352"],"affected":[{"ranges":[{"version":"< 0.225.2","status":"affected"}],"vendor":"olo-dot-io","product":"Uni-CLI","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.225.2"}],"ecosystem":"npm","package":"@zenalexa/unicli","purl":"pkg:npm/%40zenalexa/unicli","source":"ghsa"}],"references":[{"url":"https://github.com/olo-dot-io/Uni-CLI/security/advisories/GHSA-v3f4-w7r7-v3hm","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/olo-dot-io/Uni-CLI/releases/tag/v0.225.2","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/olo-dot-io/Uni-CLI","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-10-23T20:54:34.404Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-58497","url":"https://www.cve.org/CVERecord?id=CVE-2026-58497","licence":"CVE Terms of Use","modified":"2026-10-23T20:57:14.612Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-v3f4-w7r7-v3hm","url":"https://github.com/advisories/GHSA-v3f4-w7r7-v3hm","licence":"CC-BY-4.0","modified":"2026-10-24T02:56:07.901Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-58497","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-58497","licence":"Public domain","modified":"2026-10-23T21:17:24.620Z"}],"updatedAt":"2026-11-25T22:59:46.994Z","epss":{"score":0.00255,"percentile":0.18285,"date":"2026-12-01T12:00:22.000Z"}}