{"id":"CVE-2026-47723","aliases":["CVE-2026-47723","GHSA-w7w5-5gcp-38rw","GO-2026-5698"],"related":[],"kind":"vulnerability","state":"published","title":"nebula-mesh: Web UI and API responses lack security headers (CSP, X-Frame-Options, HSTS, etc.)","summary":"nebula-mesh is a self-hosted control plane for Slack Nebula mesh virtual private network. Prior to version 0.3.1, none of the response paths in `internal/web/` or `internal/api/` set the standard browser-security headers. `grep` for `Content-Security-Policy`, `X-Frame-Options`, `Strict-Transport-Security`, `X-Content-Type-Options`, `Referrer-Policy` returns zero matches across the codebase. Version 0.3.1 fixes the issue.","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.1, none of the response paths in `internal/web/` or `internal/api/` set the standard browser-security headers. `grep` for `Content-Security-Policy`, `X-Frame-Options`, `Strict-Transport-Security`, `X-Content-Type-Options`, `Referrer-Policy` returns zero matches across the codebase. Version 0.3.1 fixes the issue.","source":"cvelist"},{"lang":"en","text":"None of the response paths in `internal/web/` or `internal/api/` set the standard browser-security headers. `grep` for `Content-Security-Policy`, `X-Frame-Options`, `Strict-Transport-Security`, `X-Content-Type-Options`, `Referrer-Policy` returns zero matches across the codebase.\n\n## Impact\nThe admin UI signs CA certificates, mints API keys (returned inline once per page), displays TOTP QR codes, and exposes operator-management forms. Missing `X-Frame-Options: DENY` / `frame-ancestors 'none'` is a real clickjacking lever against an admin browsing `/ui/operators/*` or `/ui/cas/*`. Missing `X-Content-Type-Options: nosniff` allows MIME confusion on any user-supplied content surface. Missing HSTS on TLS deployments leaves a downgrade window.\n\n## Affected\nAll released versions up to v0.3.0.\n\n## Suggested fix\nA single response-header middleware mounted at the chi router root in both `/ui/*` and `/api/*` paths:\n\n```go\nfunc securityHeadersMiddleware(next http.Handler) http.Handler {\n    return http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) {\n        h := rw.Header()\n        h.Set(\"Content-Security-Policy\",\n            \"default-src 'self'; frame-ancestors 'none'; base-uri 'none'; form-action 'self'\")\n        h.Set(\"X-Content-Type-Options\", \"nosniff\")\n        h.Set(\"Referrer-Policy\", \"same-origin\")\n        h.Set(\"X-Frame-Options\", \"DENY\")  // belt-and-braces; CSP frame-ancestors is the modern path\n        if r.TLS != nil {\n            h.Set(\"Strict-Transport-Security\", \"max-age=31536000; includeSubDomains\")\n        }\n        next.ServeHTTP(rw, r)\n    })\n}\n```\n\nThe inline `<script>` in `layout.html` for CSRF wiring (added in the CSRF advisory) will need either a nonce, a hash in CSP, or external-file extraction. Easiest path: a nonce per request (`crypto/rand`, base64) injected into both the CSP header and the script's `nonce=\"\"` attribute.","format":"markdown","source":"ghsa"},{"lang":"en","text":"nebula-mesh: Web UI and API responses lack security headers (CSP, X-Frame-Options, HSTS, etc.) 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.1, ninguna de las rutas de respuesta en ’internal/web/’ o ’internal/api/’ establecía los encabezados de seguridad estándar del navegador. Una búsqueda con ’grep’ de ’Content-Security-Policy’, ’X-Frame-Options’, ’Strict-Transport-Security’, ’X-Content-Type-Options’, ’Referrer-Policy’ devuelve cero coincidencias en todo el código base. La versión 0.3.1 corrige el problema.","source":"nvd"}],"published":"2026-06-08T23:08:54.000Z","modified":"2026-10-24T13:10:00.147Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N","score":7.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N","rating":"HIGH"}],"cwes":["CWE-1021"],"affected":[{"ranges":[{"version":"< 0.3.1","status":"affected"}],"vendor":"juev","product":"nebula-mesh","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.3.1"}],"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.1"}],"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-w7w5-5gcp-38rw","tags":["x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/forgekeep/nebula-mesh/commit/b45fda5476c41ffcff1ca23058aef0fb851359c1","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/forgekeep/nebula-mesh/releases/tag/v0.3.1","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/juev/nebula-mesh/security/advisories/GHSA-w7w5-5gcp-38rw","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-24T13:53:52.661Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-47723","url":"https://www.cve.org/CVERecord?id=CVE-2026-47723","licence":"CVE Terms of Use","modified":"2026-07-24T13:54:01.417Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-w7w5-5gcp-38rw","url":"https://github.com/advisories/GHSA-w7w5-5gcp-38rw","licence":"CC-BY-4.0","modified":"2026-06-25T23:11:13.458Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5698","url":"https://pkg.go.dev/vuln/GO-2026-5698","licence":"CC-BY-4.0","modified":"2026-06-25T23:01:38.778Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-47723","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-47723","licence":"Public domain","modified":"2026-10-24T13:10:00.147Z"}],"updatedAt":"2026-11-25T22:59:29.958Z","epss":{"score":0.00303,"percentile":0.24806,"date":"2026-12-01T12:00:22.000Z"}}