{"id":"CVE-2026-61795","state":"PUBLISHED","title":"Capsule: hostnameRegexHandler.OnUpdate validates stale (old) Tenant regex, allowing invalid AllowedHostnames regex to bypass webhook validation","description":"Capsule is a multi-tenancy and policy-based framework for Kubernetes. From 0.13.0 until 0.13.7, hostnameRegexHandler.OnUpdate in internal/webhook/tenant/validation/hostname_regex.go reverses the new and old Tenant parameters and validates the previous AllowedHostnames.Regex instead of the submitted value. A cluster administrator can therefore store a malformed AllowedHostnames.Regex after the webhook accepts the update based on stale valid state. Subsequent Ingress creation or update reaches validate_hostnames.go, which evaluates the malformed pattern, ignores the regular-expression error, and treats every hostname as unmatched, blocking Ingress operations for the affected tenant until an administrator repairs the Tenant configuration. This issue is fixed in version 0.13.7.","publishedAt":"2026-09-18T16:31:42.182Z","updatedAt":"2026-09-21T20:49:59.055Z","severity":{"score":6.8,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:N/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["projectcapsule capsule"],"affected":[{"vendor":"projectcapsule","product":"capsule","versions":[{"version":">= 0.13.0, < 0.13.7","status":"affected"}]}],"references":["https://github.com/projectcapsule/capsule/security/advisories/GHSA-f94q-w3w8-cj67","https://github.com/projectcapsule/capsule/pull/1983","https://github.com/projectcapsule/capsule/commit/8d89d6865df6f41c7faa22fc9e807a57b01bfd0e","https://github.com/projectcapsule/capsule/releases/tag/v0.13.7"],"weaknesses":["CWE-697"],"ingestedAt":"2026-10-29T20:12:32.778Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/61xxx/CVE-2026-61795.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-61795","state":"PUBLISHED","datePublished":"2026-09-18T16:31:42.182Z","dateUpdated":"2026-09-21T20:49:59.055Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-07-10T20:06:05.617Z"},"containers":{"cna":{"title":"Capsule: hostnameRegexHandler.OnUpdate validates stale (old) Tenant regex, allowing invalid AllowedHostnames regex to bypass webhook validation","descriptions":[{"lang":"en","value":"Capsule is a multi-tenancy and policy-based framework for Kubernetes. From 0.13.0 until 0.13.7, hostnameRegexHandler.OnUpdate in internal/webhook/tenant/validation/hostname_regex.go reverses the new and old Tenant parameters and validates the previous AllowedHostnames.Regex instead of the submitted value. A cluster administrator can therefore store a malformed AllowedHostnames.Regex after the webhook accepts the update based on stale valid state. Subsequent Ingress creation or update reaches validate_hostnames.go, which evaluates the malformed pattern, ignores the regular-expression error, and treats every hostname as unmatched, blocking Ingress operations for the affected tenant until an administrator repairs the Tenant configuration. This issue is fixed in version 0.13.7."}],"affected":[{"vendor":"projectcapsule","product":"capsule","versions":[{"version":">= 0.13.0, < 0.13.7","status":"affected"}]}],"references":[{"url":"https://github.com/projectcapsule/capsule/security/advisories/GHSA-f94q-w3w8-cj67","name":"https://github.com/projectcapsule/capsule/security/advisories/GHSA-f94q-w3w8-cj67","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/projectcapsule/capsule/pull/1983","name":"https://github.com/projectcapsule/capsule/pull/1983","tags":["x_refsource_MISC"]},{"url":"https://github.com/projectcapsule/capsule/commit/8d89d6865df6f41c7faa22fc9e807a57b01bfd0e","name":"https://github.com/projectcapsule/capsule/commit/8d89d6865df6f41c7faa22fc9e807a57b01bfd0e","tags":["x_refsource_MISC"]},{"url":"https://github.com/projectcapsule/capsule/releases/tag/v0.13.7","name":"https://github.com/projectcapsule/capsule/releases/tag/v0.13.7","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":6.8,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"HIGH","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:N/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-697","lang":"en","description":"CWE-697: Incorrect Comparison","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-09-18T16:31:42.182Z"},"source":{"advisory":"GHSA-f94q-w3w8-cj67","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-09-18T19:30:32.778857Z","id":"CVE-2026-61795","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-09-21T20:49:59.055Z"}}]}}}