{"id":"CVE-2026-47768","aliases":["CVE-2026-47768","GHSA-9pg3-25fq-p6cc","GO-2026-5294"],"related":[],"kind":"vulnerability","state":"published","title":"nebula-mesh: Newly-minted operator API key exposed in redirect URL (Referer, history, proxy logs)","summary":"nebula-mesh is a self-hosted control plane for Slack Nebula mesh virtual private network. Prior to version 0.3.2, newly-minted operator API key exposed in redirect URL (Referer, history, proxy logs). 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, newly-minted operator API key exposed in redirect URL (Referer, history, proxy logs). This issue has been patched in version 0.3.2.","source":"cvelist"},{"lang":"en","text":"`internal/web/operators.go:251` — after `handleOperatorCreateAPIKey` mints a fresh 32-byte bearer token, the redirect points the operator's browser at:\n\n    /ui/operators/<id>?new_key=<raw-token>&key_name=<name>\n\nThe raw API key ends up:\n- in the browser's URL history\n- in the `Referer` header on every cross-origin asset the detail page loads (any third-party SVG/CSS/JS resource the layout pulls in)\n- in any reverse-proxy or load-balancer access log on the path (nginx default `combined` log captures the query string)\n- in any structured log sink the operator's local browser-history backup tool ships out\n\n`Authorization: Bearer <token>` headers go through the same hops without these problems because access logs typically don't capture request headers and the browser doesn't replay headers cross-origin.\n\nSame handler also appends `name` (`r.FormValue(\"name\")`) to the query string without `url.QueryEscape`, so an `&` in the operator-supplied key name corrupts query parsing and a `\\r\\n` in older proxies could split response headers.\n\n## Affected\nAll released versions up to v0.3.1.\n\n## Reproducer\nAs admin, create an API key via `/ui/operators/<id>/api-keys` (form POST). The 303 Location header carries the raw token in the query string. Open browser DevTools → Network → response headers; or check the reverse-proxy access log; or check the operator-detail page's `Referer`-emitting fetches.\n\n## Suggested fix\nStash the raw key in a one-shot server-side flash storage (e.g., a row in `operator_sessions` keyed by session token, with a `one_shot_token` column and `consumed_at`) or in a short-lived signed cookie. Render the key once inline on the detail page after the redirect, and clear the storage on render. Pattern mirrors the recovery-codes display in the TOTP flow.\n\nIf the flash-storage refactor is too invasive, the minimal fix is to render the key inline via a `POST` → `200 OK with HTML` (no redirect), losing the post-redirect-get idiom but eliminating the URL exposure.\n\nAlso fix `name` query encoding with `url.QueryEscape` regardless of which fix shape lands.\n\n## CVSS estimate\nAV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N — 5.5 (medium). AV:L because realistic exploit requires log-read access on shared infrastructure (proxy, CDN, browser-history backup) the operator's session touches.","format":"markdown","source":"ghsa"},{"lang":"en","text":"nebula-mesh: Newly-minted operator API key exposed in redirect URL (Referer, history, proxy logs) 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, la clave API de operador recién generada quedaba expuesta en la URL de redirección (Referer, historial, registros de proxy). Este problema ha sido parcheado en la versión 0.3.2.","source":"nvd"}],"published":"2026-06-10T22:13:45.000Z","modified":"2026-10-23T23:10:00.157Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":5.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-116","CWE-532","CWE-598"],"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-9pg3-25fq-p6cc","tags":["x-refsource-confirm"],"sources":["cvelist","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-9pg3-25fq-p6cc","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":"none","automatable":"no","technicalImpact":"partial","date":"2026-07-28T18:47:43.815Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-47768","url":"https://www.cve.org/CVERecord?id=CVE-2026-47768","licence":"CVE Terms of Use","modified":"2026-07-28T18:47:53.458Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9pg3-25fq-p6cc","url":"https://github.com/advisories/GHSA-9pg3-25fq-p6cc","licence":"CC-BY-4.0","modified":"2026-06-25T19:56:25.326Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5294","url":"https://pkg.go.dev/vuln/GO-2026-5294","licence":"CC-BY-4.0","modified":"2026-06-25T19:45:26.392Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-47768","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-47768","licence":"Public domain","modified":"2026-10-23T23:10:00.157Z"}],"updatedAt":"2026-11-25T22:59:30.364Z","epss":{"score":0.00147,"percentile":0.04126,"date":"2026-12-01T12:00:22.000Z"}}