{"id":"CVE-2026-18676","aliases":["CVE-2026-18676","GHSA-3vcp-chfh-f6r2","GO-2026-5102"],"related":["CVE-2026-45021"],"kind":"vulnerability","state":"published","title":"Kong Mesh: default control plane config leaks the admin token cross-origin via a CORS wildcard and localhost admin","summary":"The default kuma-cp configuration in Kong Mesh reveals the admin bootstrap token and signing keys to any webpage the operator visits while the control plane is reachable from their browser. Due to a CORS misconfiguration a cross-origin fetch() from a malicious page returns the admin JWT and signing material.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The default kuma-cp configuration in Kong Mesh reveals the admin bootstrap token and signing keys to any webpage the operator visits while the control plane is reachable from their browser. Due to a CORS misconfiguration a cross-origin fetch() from a malicious page returns the admin JWT and signing material.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nDefault `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.\n\n## Am I affected?\n\nYou are affected if all of these hold:\n\n1. `kuma-cp` runs with default config (`CorsAllowedDomains: [\".*\"]` and `LocalhostIsAdmin: true`).\n2. The control plane is reachable from a browser on the same machine:\n   - `kuma-cp run` on a developer laptop\n   - Docker `--network host` or port-publish on a workstation\n   - `kubectl port-forward` from a machine that also browses the web\n3. The operator visits a page running attacker JavaScript while the control plane is reachable.\n\nYou are not affected if:\n\n- The control plane runs on a Kubernetes cluster accessed via ClusterIP, NodePort, or LoadBalancer from a remote client.\n- The control plane runs on an SSH-administered VM with no browser on the host.\n- `KUMA_API_SERVER_AUTHN_LOCALHOST_IS_ADMIN=false` is set (see https://kuma.io/docs/latest/production/secure-deployment/api-server-auth/).\n- `KUMA_API_SERVER_CORS_ALLOWED_DOMAINS` is set to an explicit allowlist that excludes attacker origins.\n\n## Mitigation\n\n1. Set `KUMA_API_SERVER_AUTHN_LOCALHOST_IS_ADMIN=false` after retrieving the admin token.\n2. Set `KUMA_API_SERVER_CORS_ALLOWED_DOMAINS` to an explicit allowlist, for example `http://localhost:5681,http://127.0.0.1:5681`.\n3. Do not run `kuma-cp` on a machine where you browse untrusted sites.\n\n## Fix\n\nFixed in [#16416](https://github.com/kumahq/kuma/pull/16416), backported to all supported release branches ([#16423](https://github.com/kumahq/kuma/pull/16423), [#16424](https://github.com/kumahq/kuma/pull/16424), [#16425](https://github.com/kumahq/kuma/pull/16425), [#16426](https://github.com/kumahq/kuma/pull/16426), [#16427](https://github.com/kumahq/kuma/pull/16427)).\n\nChanges in patched versions:\n\n- `CorsAllowedDomains` default changed from `[\".*\"]` to `[]` — CORS is now opt-in; set the env var explicitly if you need GUI access.\n- `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`.\n\nUpgrade to a patched version:\n\n- 2.7.25\n- 2.9.15\n- 2.11.13\n- 2.12.10\n- 2.13.5\n\n## Credits\n\nReported by `eldudareeno`.\n\n## CVSS\n\n`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.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Default kuma-cp leaks admin token cross-origin via CORS wildcard + LocalhostIsAdmin in github.com/kumahq/kuma","format":"markdown","source":"go"},{"lang":"es","text":"La configuración predeterminada de kuma-cp en Kong Mesh revela el token de arranque de administrador y las claves de firma a cualquier página web que el operador visita mientras el plano de control es accesible desde su navegador. Debido a una configuración incorrecta de CORS, una llamada fetch() de origen cruzado desde una página maliciosa devuelve el JWT de administrador y el material de firma.","source":"nvd"}],"published":"2026-05-14T20:15:08.000Z","modified":"2026-11-23T20:30:08.334Z","severity":{"scorer":"Kong","scheme":"CVSS:4.0","vector":"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","score":5.1,"rating":"MEDIUM"},"severities":[{"scorer":"Kong","scheme":"CVSS:4.0","vector":"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","score":5.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"}],"cwes":["CWE-346","CWE-942"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"2.7.25","status":"affected"},{"type":"semver","introduced":"2.8.0","fixed":"2.9.15","status":"affected"},{"type":"semver","introduced":"2.10.0","fixed":"2.11.13","status":"affected"},{"type":"semver","introduced":"2.12.0","fixed":"2.12.10","status":"affected"},{"type":"semver","introduced":"2.13.0","fixed":"2.13.5","status":"affected"}],"vendor":"Kong Inc.","product":"Kong Mesh","platforms":["Linux"],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.7.25"}],"ecosystem":"Go","package":"github.com/kumahq/kuma","purl":"pkg:golang/github.com/kumahq/kuma","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.9.0","status":"affected","fixed":"2.9.15"}],"ecosystem":"Go","package":"github.com/kumahq/kuma","purl":"pkg:golang/github.com/kumahq/kuma","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.11.0","status":"affected","fixed":"2.11.13"}],"ecosystem":"Go","package":"github.com/kumahq/kuma","purl":"pkg:golang/github.com/kumahq/kuma","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.12.0","status":"affected","fixed":"2.12.10"}],"ecosystem":"Go","package":"github.com/kumahq/kuma","purl":"pkg:golang/github.com/kumahq/kuma","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.13.0","status":"affected","fixed":"2.13.5"}],"ecosystem":"Go","package":"github.com/kumahq/kuma","purl":"pkg:golang/github.com/kumahq/kuma","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/kumahq/kuma","purl":"pkg:golang/github.com/kumahq/kuma","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.7.25"},{"type":"semver","introduced":"2.9.13","status":"affected","fixed":"2.11.13"},{"type":"semver","introduced":"2.12.4","status":"affected","fixed":"2.12.10"},{"type":"semver","introduced":"2.13.0","status":"affected","fixed":"2.13.5"}],"ecosystem":"Go","package":"github.com/kumahq/kuma/v2","purl":"pkg:golang/github.com/kumahq/kuma/v2","source":"go"}],"references":[{"url":"https://github.com/kumahq/kuma/security/advisories/GHSA-3vcp-chfh-f6r2","tags":["advisory","vendor-advisory","web"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/kumahq/kuma/pull/16416","tags":["fix","patch","web"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/kumahq/kuma/pull/16423","tags":["fix","patch","web"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/kumahq/kuma/pull/16424","tags":["fix","patch","web"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/kumahq/kuma/pull/16425","tags":["fix","patch","web"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/kumahq/kuma/pull/16426","tags":["fix","patch","web"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/kumahq/kuma/pull/16427","tags":["fix","patch","web"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://developer.konghq.com/mesh/changelog/","tags":["release-notes"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45021","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/kumahq/kuma/commit/8fefa8595d44eb68d922405702ed7a0826322907","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/kumahq/kuma","tags":["package"],"sources":["ghsa"]}],"credits":["eldudareeno"],"assigner":"Kong","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-08-13T14:50:34.609Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-18676","url":"https://www.cve.org/CVERecord?id=CVE-2026-18676","licence":"CVE Terms of Use","modified":"2026-08-13T14:50:43.069Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3vcp-chfh-f6r2","url":"https://github.com/advisories/GHSA-3vcp-chfh-f6r2","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:45.346Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5102","url":"https://pkg.go.dev/vuln/GO-2026-5102","licence":"CC-BY-4.0","modified":"2026-11-23T20:30:08.334Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-18676","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-18676","licence":"Public domain","modified":"2026-10-23T19:10:00.167Z"}],"updatedAt":"2026-11-25T22:59:32.609Z","epss":{"score":0.0023,"percentile":0.14862,"date":"2026-12-01T12:00:22.000Z"}}