github.com/kumahq/kuma
Affected
- introduced
0, fixed2.7.25(semver)
Fixed versions
2.7.25
Fix
- Fixed version
2.7.25go get github.com/kumahq/[email protected]
Advisory
Also known as: CVE-2026-18676, CVE-2026-45021, GO-2026-5102
Default kuma-cp leaks admin token cross-origin via CORS wildcard + LocalhostIsAdmin
Summary
Default kuma-cp config leaks the admin bootstrap token and signing keys to any webpage the operator visits while the control plane is reachable from their browser. CorsAllowedDomains: [".*"] reflects any Origin, and LocalhostIsAdmin: true promotes requests from 127.0.0.1 to mesh-system:admin. A cross-origin fetch() from a malicious page returns the admin JWT and signing material.
Am I affected?
You are affected if all of these hold:
kuma-cp runs with default config (CorsAllowedDomains: [".*"] and LocalhostIsAdmin: true).kuma-cp run on a developer laptop--network host or port-publish on a workstationkubectl port-forward from a machine that also browses the webYou are not affected if:
KUMA_API_SERVER_AUTHN_LOCALHOST_IS_ADMIN=false is set (see https://kuma.io/docs/latest/production/secure-deployment/api-server-auth/).KUMA_API_SERVER_CORS_ALLOWED_DOMAINS is set to an explicit allowlist that excludes attacker origins.Mitigation
KUMA_API_SERVER_AUTHN_LOCALHOST_IS_ADMIN=false after retrieving the admin token.KUMA_API_SERVER_CORS_ALLOWED_DOMAINS to an explicit allowlist, for example http://localhost:5681,http://127.0.0.1:5681.kuma-cp on a machine where you browse untrusted sites.Fix
Fixed in #16416, backported to all supported release branches (#16423, #16424, #16425, #16426, #16427).
Changes in patched versions:
CorsAllowedDomains default changed from [".*"] to [] — CORS is now opt-in; set the env var explicitly if you need GUI access.LocalhostIsAdmin hardened: now requires direct loopback RemoteAddr and Host, and rejects requests carrying proxy-hop headers (X-Forwarded-For), cross-site fetch metadata (Sec-Fetch-Site), or a non-localhost Origin.Upgrade to a patched version:
Credits
Reported by eldudareeno.
CVSS
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N = 5.1 Medium.
Medium Basis: The source's own band: MODERATE
0, fixed 2.7.25 (semver)2.7.25
2.7.25go get github.com/kumahq/[email protected]2.9.0, fixed 2.9.15 (semver)2.9.15
2.9.15go get github.com/kumahq/[email protected]2.11.0, fixed 2.11.13 (semver)2.11.13
2.11.13go get github.com/kumahq/[email protected]2.12.0, fixed 2.12.10 (semver)2.12.10
2.12.10go get github.com/kumahq/[email protected]2.13.0, fixed 2.13.5 (semver)2.13.5
2.13.5go get github.com/kumahq/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0