{"id":"CVE-2026-47725","aliases":["CVE-2026-47725","GHSA-273q-qgh5-wrj6","GO-2026-5049"],"related":[],"kind":"vulnerability","state":"published","title":"nebula-mesh: Web UI lacks CSRF tokens on /ui/* mutating endpoints","summary":"nebula-mesh is a self-hosted control plane for Slack Nebula mesh virtual private network. Prior to version 0.3.3, every /ui/* POST / PUT / PATCH / DELETE route processes the request as soon as the session cookie validates. SameSite=Lax on the session cookie prevents most cross-site form submits but does not protect: top-level form-submit navigations from third-party pages (some browsers still send Lax cookies on top-level POSTs); same-registrable-domain attackers (sibling-subdomain XSS, subdomain takeover); the GET /ui/logout route, which a third-party <img src=\".../ui/logout\"> can force-trigger. This issue has been patched in version 0.3.3.","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.3, every /ui/* POST / PUT / PATCH / DELETE route processes the request as soon as the session cookie validates. SameSite=Lax on the session cookie prevents most cross-site form submits but does not protect: top-level form-submit navigations from third-party pages (some browsers still send Lax cookies on top-level POSTs); same-registrable-domain attackers (sibling-subdomain XSS, subdomain takeover); the GET /ui/logout route, which a third-party <img src=\".../ui/logout\"> can force-trigger. This issue has been patched in version 0.3.3.","source":"cvelist"},{"lang":"en","text":"Every `/ui/*` POST / PUT / PATCH / DELETE route processes the request as soon as the session cookie validates. `SameSite=Lax` on the session cookie prevents most cross-site form submits but does not protect:\n\n- top-level form-submit navigations from third-party pages (some browsers still send Lax cookies on top-level POSTs)\n- same-registrable-domain attackers (sibling-subdomain XSS, subdomain takeover)\n- the `GET /ui/logout` route, which a third-party `<img src=\".../ui/logout\">` can force-trigger\n\nThe admin UI signs CA certificates, mints API keys, rotates / retires / deletes CAs, disables operators, and changes server settings. CSRF here is a real privilege escalation, not just annoyance.\n\n## Affected\nAll released versions up to v0.3.2.\n\n## Suggested fix\nDouble-submit cookie: a 32-byte `crypto/rand` token in a non-HttpOnly `_csrf` cookie, echoed in either `X-CSRF-Token` (htmx) or a `_csrf` form field (HTML forms). Compared in constant time. Rotated on every privilege transition (`Login`, OIDC `StartAuthenticatedSession`, `CompleteTwoFactor`, `Logout`) so pre-auth fixation cannot survive promotion. Rejections audit-logged as `ui.csrf.rejected` with reason; response body stays opaque.\n\n`/ui/logout` becomes POST so it is no longer reachable via `<img>` tags.\n\nFix coordinates with the Secure-cookie advisory disclosed concurrently — the `_csrf` cookie inherits the same `Secure`-attribute derivation.\n\n## Reproducer\nWith an authenticated operator session in browser tab A, open the following minimal HTML in any other tab:\n\n```html\n<form action=\"https://nebula.example.com/ui/cas/{ca-id}/delete\" method=\"POST\">\n  <button>Click for free puppy</button>\n</form>\n```\n\nClick. The CA is deleted — the server processes the POST because the session cookie is automatically attached and there is no other check. The same trick works for force-rotate, retire, mint API keys, disable operators, etc.\n\nAlternative force-logout: `<img src=\"https://nebula.example.com/ui/logout\">` placed on an attacker's page logs out any visiting authenticated operator. No interaction required.\n\n## Notes\n- Multipart and JSON endpoints don't exist in the current UI surface. Future additions must rely on the header path because `r.PostFormValue` only reads `application/x-www-form-urlencoded` bodies. The middleware's package comment documents this.\n- The patch assumes nebula-mgmt is the sole authority on its registrable domain. A compromised sibling subdomain can still set parent-domain cookies and forge matches; SameSite=Lax does not prevent that. Documented in the patch.","format":"markdown","source":"ghsa"},{"lang":"en","text":"nebula-mesh's web UI lacks CSRF tokens on /ui/* mutating endpoints 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.3, cada ruta /ui/* POST / PUT / PATCH / DELETE procesa la solicitud tan pronto como la cookie de sesión valida. SameSite=Lax en la cookie de sesión previene la mayoría de los envíos de formularios entre sitios, pero no protege: las navegaciones de envío de formularios de nivel superior desde páginas de terceros (algunos navegadores aún envían cookies Lax en POSTs de nivel superior); atacantes del mismo dominio registrable (XSS de subdominio hermano, toma de control de subdominio); la ruta GET /ui/logout, que un tercero <img src=’... / ui/logout’> puede forzar a activar. Este problema ha sido parcheado en la versión 0.3.3.","source":"nvd"}],"published":"2026-06-08T23:09:21.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:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","score":6.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N","rating":"HIGH"}],"cwes":["CWE-269","CWE-352"],"affected":[{"ranges":[{"version":"< 0.3.3","status":"affected"}],"vendor":"juev","product":"nebula-mesh","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.3.3"}],"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.3"}],"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-273q-qgh5-wrj6","tags":["exploit","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/forgekeep/nebula-mesh/releases/tag/v0.3.3","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/juev/nebula-mesh/security/advisories/GHSA-273q-qgh5-wrj6","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":"yes","technicalImpact":"partial","date":"2026-07-28T19:36:15.390Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-47725","url":"https://www.cve.org/CVERecord?id=CVE-2026-47725","licence":"CVE Terms of Use","modified":"2026-07-28T19:36:36.348Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-273q-qgh5-wrj6","url":"https://github.com/advisories/GHSA-273q-qgh5-wrj6","licence":"CC-BY-4.0","modified":"2026-06-17T00:26:22.896Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5049","url":"https://pkg.go.dev/vuln/GO-2026-5049","licence":"CC-BY-4.0","modified":"2026-06-17T00:15:12.887Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-47725","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-47725","licence":"Public domain","modified":"2026-10-23T23:10:00.157Z"}],"updatedAt":"2026-11-25T22:59:30.363Z","epss":{"score":0.00187,"percentile":0.08727,"date":"2026-12-01T12:00:22.000Z"}}