GHSA-v3f4-w7r7-v3hm

Suggest an improvement
Source
https://github.com/advisories/GHSA-v3f4-w7r7-v3hm
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-v3f4-w7r7-v3hm/GHSA-v3f4-w7r7-v3hm.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-v3f4-w7r7-v3hm
Published
2026-06-19T21:43:09Z
Modified
2026-09-10T03:50:50Z
Severity
  • 8.6 (High) CVSS_V4 - 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 CVSS Calculator
Summary
Uni-CLI: Legacy HTTP MCP transport accepted browser-originated localhost requests
Details

Impact

Uni-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.

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.

Patches

Version 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.

Workarounds

Upgrade 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.

Credits

Reported privately by Ryan Vonbrubeck (@dodge1218).

Database specific
{
    "cwe_ids":  [
        "CWE-346",
        "CWE-352"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-06-19T21:43:09Z",
    "nvd_published_at":  null,
    "severity":  "HIGH"
}
References

Affected packages

npm / @zenalexa/unicli

Package

Name
@zenalexa/unicli
View open source insights on deps.dev
Purl
pkg:npm/%40zenalexa/unicli

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.225.2

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-v3f4-w7r7-v3hm/GHSA-v3f4-w7r7-v3hm.json"