CVE-2026-47726

highpriority · track · 0EPSS 0.003 · 23 %ileEUUS
grimoire priorityP2 · Scheduled
Exploitable?
—
no known exploitation
Likely / severe?
0.30% (23rd) EPSS
CVSS 7.1 · high
Is it mine?
2 products
Check your exposure
Who says so?
3 sources
cnnvd · enisa_euvd · osv

EPSS · scored 2026-10-27

nebula-mesh is a self-hosted control plane for Slack Nebula mesh virtual private network. Prior to version 0.3.2, internal/api/audit.go:12 — handleGetAuditLog does no admin check. The route is bearer-auth gated only; any operator API key returns the full audit log via store.ListAuditEntries (up to limit=1000). This includes cross-tenant actor names, host/CA/operator IDs, action timestamps, and masked-IP entries from rate-limit refusals — enough surface for a tenant to enumerate the server's activity, infer staffing patterns, or identify high-value targets. This issue has been patched in version 0.3.2.

01

cvss

Technical severity, 0–10. One row per scoring source.

7.1
010

base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 4.9–7.1

v4.07.1highCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:Nsecondary · ENISA EU
v4.07.1highCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:Xsecondary · security-advisories@github.com
v4.04.9mediumCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:Xsecondary · CVSS-BT (t0sche)
02

ssvc

A stakeholder decision — act, attend, or track — from exploitation and impact.

Exploitation: poc · Automatable: no · Technical Impact: partialcoordinatorcisa_ssvcUS
03

weaknesses

The CWE weakness classes this flaw belongs to.

04

affected products (2)

Products and version ranges known to be affected.

05

advisories (2)

Vendor and ecosystem advisories describing this.

  • GHSA-qm33-p5p9-f8vgnebula-mesh: GET /api/v1/audit-log discloses all entries to any operator2026-06-08ghsa · osvUS

    `internal/api/audit.go:12` — `handleGetAuditLog` does no admin check. The route is bearer-auth gated only; any operator API key returns the full audit log via `store.ListAuditEntries` (up to limit=1000). This includes cross-tenant actor names, host/CA/operator IDs, action timestamps, and masked-IP entries from rate-limit refusals — enough surface for a tenant to enumerate the server's activity, infer staffing patterns, or identify high-value targets. ## Affected All released versions up to v0.3.1. ## Reproducer ``` curl -H "Authorization: Bearer <any-operator-key>" \ https://server/api/v1/audit-log?limit=1000 ``` ## Suggested fix Two options, either acceptable: 1. `if !actorIsAdmin(ctx) { 403 }` — strictest; matches the "operator management is admin-only" stance. 2. Scope to actor: filter `store.ListAuditEntries` by `actor.Username` plus a subquery of CA IDs the actor owns. Operators see their own audit entries plus entries against their CA's resources. Recommend option 1 unless the UI needs per-operator audit views. ## Suggested patch Verified locally: `go vet`, `go test -race -count=1 ./...`, `golangci-lint v2.12` all clean. ```diff diff --git a/internal/api/audit.go b/internal/api/audit.go index 3236631..57b57ce 100644 --- a/internal/api/audit.go +++ b/internal/api/audit.go @@ -10,6 +10,10 @@ import ( const defaultAuditLimit = 100 func (s *Server) handleGetAuditLog(w http.ResponseWriter, r *http.Request) { + if !actorIsAdmin(r.Context()) { + writeError(w, http.StatusForbidden, "audit log access requires the admin role") + return + } filter := store.AuditFilter{ Action: r.URL.Query().Get("action"), Limit: defaultAuditLimit, diff --git a/internal/api/audit_admin_test.go b/internal/api/audit_admin_test.go new file mode 100644 index 0000000..47e1ca4 --- /dev/null +++ b/internal/api/audit_admin_test.go @@ -0,0 +1,62 @@ +package api + +import ( + "context" + "crypto/sha256" + "encoding/hex" + "net/http" + "net/http/httptest" + "testing" + + "github.com/google/uuid" + "github.com/juev/nebula-mesh/internal/models" +) + +// TestHandleGetAuditLog_NonAdminForbidden confirms a non-admin operator +// API key cannot read the audit log. The legacy config-key path stays +// admin and is covered by the happy-path test elsewhere. +func TestHandleGetAuditLog_NonAdminForbidden(t *testing.T) { + srv, _ := newTestServer(t) + + nonAdminKey := uuid.New().String() + keyHash := sha256.Sum256([]byte(nonAdminKey)) + if err := srv.store.CreateOperator(context.Background(), &models.Operator{ + ID: uuid.New().String(), Username: "non-admin", PasswordHash: "x", + Role: "user", Status: models.OperatorStatusActive, + }); err != nil { + t.Fatal(err) + } + op, err := srv.store.GetOperatorByUsername(context.Background(), "non-admin") + if err != nil { + t.Fatal(err) + } + if err := srv.store.CreateOperatorAPIKey(context.Background(), &models.OperatorAPIKey{ + ID: uuid.New().String(), OperatorID: op.ID, KeyHash: hex.EncodeToString(keyHash[:]), + }); err != nil { + t.Fatal(err) + } + + req := httptest.NewRequest("GET", "/api/v1/audit-log", nil) + req.Header.Set("Authorization", "Bearer "+nonAdminKey) + rec := httptest.NewRecorder() + srv.ServeHTTP(rec, req) + + if rec.Code != http.StatusForbidden { + t.Errorf("non-admin audit-log status = %d, want 403", rec.Code) + } +} + +// TestHandleGetAuditLog_LegacyKeyAllowed confirms the legacy config-key +// path still reaches the handler (preserves backward compatibility). +func TestHandleGetAuditLog_LegacyKeyAllowed(t *testing.T) { + srv, _ := newTestServer(t) + + req := httptest.NewRequest("GET", "/api/v1/audit-log", nil) + req.Header.Set("Authorization", "Bearer "+testAPIKey) + rec := httptest.NewRecorder() + srv.ServeHTTP(rec, req) + + if rec.Code == http.StatusForbidden { + t.Errorf("legacy key rejected with 403; want pass-through") + } +} ```

  • GO-2026-5586nebula-mesh: GET /api/v1/audit-log discloses all entries to any operator in github.com/juev/nebula-mesh2026-06-25vendor · osvUS

    nebula-mesh: GET /api/v1/audit-log discloses all entries to any operator in github.com/juev/nebula-mesh

06

also known as (5)

Other names and identifiers for this entity.

07

sources

Which sources assert this record, and when.

published 2026-07-28modified 2026-10-23
09

references (9)

External citations — patches, advisories, analysis.

scry

Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.

Free scan