{"id":"CVE-2026-48058","aliases":["CVE-2026-48058","GHSA-rqfj-vv8r-xhqc","GO-2026-5635"],"related":[],"kind":"vulnerability","state":"published","title":"nebula-mesh: Session and OIDC state cookies lack the Secure attribute","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"`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.\n\n## Affected\nAll released versions up to v0.3.1.\n\n## Impact\nAn 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.\n\n## Cookie sites\n- `internal/web/session.go` — `Login`, `StartAuthenticatedSession`, `CompleteTwoFactor`, `Logout`\n- `internal/web/oidc.go` — `HandleLogin` (state set), `HandleCallback` (state clear)\n\n## Suggested fix\nDriven 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.\n\nLogout and OIDC state-clear cookies also pick up matching `HttpOnly` + `SameSite=Lax` so browsers reliably replace the original.\n\n## Reproducer\nStart `nebula-mgmt` without `tls_cert`/`tls_key` (the documented \"behind a reverse proxy\" deployment). Hit any login flow over the local listener:\n\n```\ncurl -i -X POST -d 'username=admin&password=…' http://127.0.0.1:8080/ui/login\n```\n\nThe `Set-Cookie: nebula_session=…` line will lack `Secure`. A subsequent unencrypted hop reveals the cookie verbatim.\n\n## Operational migration\nOperators 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.","format":"markdown","source":"ghsa"},{"lang":"en","text":"nebula-mesh: Session and OIDC state cookies lack the Secure attribute in github.com/juev/nebula-mesh","format":"markdown","source":"go"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-06-10T18:49:22.000Z","modified":"2026-10-23T23:10:00.157Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":4.6,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":4.6,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"}],"cwes":["CWE-614"],"affected":[{"ranges":[{"version":"< 0.3.2","status":"affected"}],"vendor":"juev","product":"nebula-mesh","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.3.2"}],"ecosystem":"Go","package":"github.com/juev/nebula-mesh","purl":"pkg:golang/github.com/juev/nebula-mesh","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.3.2"}],"ecosystem":"Go","package":"github.com/juev/nebula-mesh","purl":"pkg:golang/github.com/juev/nebula-mesh","source":"go"}],"references":[{"url":"https://github.com/forgekeep/nebula-mesh/security/advisories/GHSA-rqfj-vv8r-xhqc","tags":["exploit","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/forgekeep/nebula-mesh/commit/ffdd67dbf221d9a5855c39fbe11b49c245048d85","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/forgekeep/nebula-mesh/releases/tag/v0.3.2","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/juev/nebula-mesh/security/advisories/GHSA-rqfj-vv8r-xhqc","tags":["advisory","web"],"sources":["ghsa","go"]},{"url":"https://github.com/juev/nebula-mesh","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-07-28T19:16:35.513Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-48058","url":"https://www.cve.org/CVERecord?id=CVE-2026-48058","licence":"CVE Terms of Use","modified":"2026-07-28T19:16:39.082Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rqfj-vv8r-xhqc","url":"https://github.com/advisories/GHSA-rqfj-vv8r-xhqc","licence":"CC-BY-4.0","modified":"2026-06-25T23:11:33.882Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5635","url":"https://pkg.go.dev/vuln/GO-2026-5635","licence":"CC-BY-4.0","modified":"2026-06-25T23:01:25.577Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-48058","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-48058","licence":"Public domain","modified":"2026-10-23T23:10:00.157Z"}],"updatedAt":"2026-11-25T22:59:30.365Z","epss":{"score":0.00246,"percentile":0.16918,"date":"2026-12-01T12:00:22.000Z"}}