Skip to main content
Vulnerability Database/CVE-2026-105216

CVE-2026-105216: go-micro Information Disclosure Vulnerability

CVE-2026-105216 is an improper certificate validation flaw in go-micro that enables man-in-the-middle attacks to intercept sensitive data. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-105216 Overview

CVE-2026-105216 is an improper certificate validation vulnerability [CWE-295] affecting the go-micro framework prior to version 6.0.0. The shared Transport Layer Security (TLS) helper in internal/util/tls/tls.go sets InsecureSkipVerify to true by default. Any service built on go-micro accepts arbitrary certificates when establishing TLS connections. Man-in-the-middle (MITM) attackers positioned on the network can impersonate services and intercept or modify gRPC transport traffic, HTTP and RabbitMQ broker messages, and Consul or etcd registry traffic. Intercepted data includes authentication tokens and credentials passed between microservices.

Critical Impact

Default-insecure TLS configuration enables silent interception of microservice-to-microservice traffic, including credentials and service tokens, across every go-micro deployment running a version before 6.0.0.

Affected Products

  • go-micro framework versions prior to 6.0.0
  • Applications using the go-micro internal/util/tls helper (observed at v5.30.0)
  • Services relying on go-micro gRPC transport, HTTP or RabbitMQ brokers, and Consul or etcd registries

Discovery Timeline

  • 2026-10-04 - CVE-2026-105216 published to NVD
  • 2026-10-06 - Last updated in NVD database

Technical Details for CVE-2026-105216

Vulnerability Analysis

The go-micro framework provides a shared TLS configuration helper used by its transport, broker, and registry subsystems. That helper constructs a *tls.Config with InsecureSkipVerify set to true by default. When this configuration is passed into any TLS client, the Go standard library skips validation of the server certificate chain and hostname.

Because the insecure default is embedded in a shared internal utility, every subsystem that depends on it inherits the behavior. Developers who enable TLS in good faith receive no warning that peer authentication is disabled. Service meshes built on go-micro therefore encrypt data in transit without binding that encryption to a verified identity.

Root Cause

The root cause is an unsafe default in internal/util/tls/tls.go (see lines 43–67 at v5.30.0). Setting InsecureSkipVerify: true disables certificate chain and hostname validation. This violates [CWE-295: Improper Certificate Validation] by trusting any presented certificate, including self-signed or attacker-controlled ones.

Attack Vector

An attacker who can reach the network path between two go-micro components can present a certificate for any identity. The client accepts it and completes the TLS handshake. The attacker then relays, inspects, or modifies gRPC calls, broker messages, and registry lookups. Captured material includes service authentication tokens, API credentials, and configuration data stored in Consul or etcd.

The fix released in go-micro v6 refactors module paths from go-micro.dev/v5/... to go-micro.dev/v6/... as part of the broader v6 release that corrects the TLS default.

go
// Patch excerpt: agent/agent.go module path change in v6 release
-	pb "go-micro.dev/v5/agent/proto"
-	"go-micro.dev/v5/ai"
-	"go-micro.dev/v5/gateway/a2a"
-	"go-micro.dev/v5/server"
-	"go-micro.dev/v5/store"
+	pb "go-micro.dev/v6/agent/proto"
+	"go-micro.dev/v6/ai"
+	"go-micro.dev/v6/gateway/a2a"
+	"go-micro.dev/v6/server"
+	"go-micro.dev/v6/store"

Source: GitHub Commit c7657f73

Detection Methods for CVE-2026-105216

Indicators of Compromise

  • Unexpected TLS certificate fingerprints presented by services registered in Consul or etcd that do not match the issuing internal certificate authority.
  • Service-to-service connections completing successfully against hosts whose certificate common name or Subject Alternative Name does not match the registered service identity.
  • Anomalous registry writes or broker publishes originating from IP addresses outside the known service subnet.

Detection Strategies

  • Perform a software composition analysis (SCA) scan across Go modules to identify any go-micro.dev/v5 or earlier dependency pinned below 6.0.0.
  • Grep source trees for InsecureSkipVerify: true and for callers of the internal/util/tls helper to confirm which binaries ship the insecure default.
  • Deploy a passive TLS inspector on east-west traffic to flag handshakes in which the server certificate is not signed by the organization's internal certificate authority.

Monitoring Recommendations

  • Alert on new or rotated certificates appearing in service-to-service TLS handshakes that are not issued by the approved internal public key infrastructure (PKI).
  • Monitor Consul and etcd audit logs for registry mutations from unexpected client identities or source addresses.
  • Track outbound connections from microservices to hosts that resolve outside the service mesh IP ranges.

How to Mitigate CVE-2026-105216

Immediate Actions Required

  • Upgrade all go-micro dependencies to version 6.0.0 or later and update module imports from go-micro.dev/v5 to go-micro.dev/v6.
  • Rotate any service account credentials, API tokens, and broker or registry secrets that may have transited affected deployments.
  • Audit internal PKI logs for certificates issued to unexpected principals and revoke any that cannot be accounted for.

Patch Information

The fix is included in the go-micro v6 release referenced in GitHub Commit c7657f73. Additional context is available in GitHub Issue #2963 and the VulnCheck Advisory for Go Micro.

Workarounds

  • Where immediate upgrade is not possible, fork or vendor the internal/util/tls helper and set InsecureSkipVerify to false, providing a valid RootCAs pool.
  • Terminate TLS at a sidecar proxy (for example, Envoy or linkerd-proxy) that performs full certificate validation and treat the go-micro connection as plaintext over loopback.
  • Restrict east-west traffic with network policies so only authorized service identities can reach broker, registry, and gRPC endpoints.
bash
# Update go.mod to pull the patched release
go get go-micro.dev/v6@latest
go mod tidy

# Verify no v5 references remain
grep -R "go-micro.dev/v5" ./ || echo "clean"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.