4.6medium
nebula-mesh: Session and OIDC state cookies lack the Secure attribute
- Severity
- 4.6medium CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.25% (higher than 16% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-rqfj-vv8r-xhqcGO-2026-5635
Description
nebula-mesh is a self-hosted control plane for Slack Nebula mesh virtual private network. Prior to version 0.3.2, internal/web/session.go and internal/web/oidc.go set HttpOnly and SameSite=Lax on every cookie but never Secure. A single plaintext request to the origin (operator on a LAN, mistyped URL, HTTP→HTTPS not strictly enforced, reverse proxy misconfiguration) discloses the session. This issue has been patched in version 0.3.2.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| juev nebula-mesh | < 0.3.2 | CVE List |
| github.com/juev/nebula-mesh (Go) | before 0.3.2 | GitHub Advisory Database, Go Vulnerability Database |
All scores
| GitHub_M | 4.6medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:U |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:U |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
nebula-mesh is a self-hosted control plane for Slack Nebula mesh virtual private network. Prior to version 0.3.2, internal/web/session.go and internal/web/oidc.go set HttpOnly and SameSite=Lax on every cookie but never Secure. A single plaintext request to the origin (operator on a LAN, mistyped URL, HTTP→HTTPS not strictly enforced, reverse proxy misconfiguration) discloses the session. This issue has been patched in version 0.3.2.
GitHub Advisory Database
internal/web/session.go and internal/web/oidc.go set HttpOnly and SameSite=Lax on every cookie but never Secure. A single plaintext request to the origin (operator on a LAN, mistyped URL, HTTP→HTTPS not strictly enforced, reverse proxy misconfiguration) discloses the session.
Affected
All released versions up to v0.3.1.
Impact
An attacker who can observe one HTTP request to the origin recovers the session cookie and impersonates the operator for the remainder of its 24h TTL. The OIDC state cookie has a narrower 10-minute window but enables CSRF on the OIDC callback during that window.
Cookie sites
internal/web/session.go—Login,StartAuthenticatedSession,CompleteTwoFactor,Logoutinternal/web/oidc.go—HandleLogin(state set),HandleCallback(state clear)
Suggested fix
Driven by an explicit cookie_secure config option, inferred true when tls_cert+tls_key are configured and false otherwise. rate_limit.trust_proxy_header is deliberately not used as a signal — that flag controls XFF parsing for rate-limit IPs and does not promise the proxy speaks TLS to clients. Operator behind a TLS-terminating proxy sets cookie_secure: true explicitly.
Logout and OIDC state-clear cookies also pick up matching HttpOnly + SameSite=Lax so browsers reliably replace the original.
Reproducer
Start nebula-mgmt without tls_cert/tls_key (the documented "behind a reverse proxy" deployment). Hit any login flow over the local listener:
curl -i -X POST -d 'username=admin&password=…' http://127.0.0.1:8080/ui/login
The Set-Cookie: nebula_session=… line will lack Secure. A subsequent unencrypted hop reveals the cookie verbatim.
Operational migration
Operators flipping cookie_secure on a running deployment should expect a one-time logout: existing browser cookies have the old attribute set and the new delete-cookie won't match.
Go Vulnerability Database
nebula-mesh: Session and OIDC state cookies lack the Secure attribute in github.com/juev/nebula-mesh
NVD (es)
nebula-mesh es un plano de control autoalojado para la red privada virtual de malla Slack Nebula. Antes de la versión 0.3.2, internal/web/session.go e internal/web/oidc.go establecían HttpOnly y SameSite=Lax en cada cookie, pero nunca Secure. Una única solicitud en texto plano al origen (operador en una LAN, URL mal escrita, HTTP?HTTPS no estrictamente aplicado, mala configuración del proxy inverso) revela la sesión. Este problema ha sido parcheado en la versión 0.3.2.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-48058 changed 2026-07-28 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-rqfj-vv8r-xhqc changed 2026-06-25 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-5635 changed 2026-06-25 | CC-BY-4.0 |
| NVD | CVE-2026-48058 changed 2026-10-23 | Public domain |