CVE-2026-61795 Capsule: hostnameRegexHandler.OnUpdate validates stale (old) Tenant regex, allowing invalid AllowedHostnames regex to bypass webhook validation
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- Kubernetes
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.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| projectcapsule github.com/projectcapsule/capsule(Go) | >= 0.13.0, < 0.13.7 | 0.13.7 | Fixed |
| projectcapsule github.com/projectcapsule/capsule | = >= 0.13.0, < 0.13.7 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| projectcapsule github.com/projectcapsule/capsule(Go) | >= 0.13.0, < 0.13.7 | 0.13.7 |
| projectcapsule github.com/projectcapsule/capsule | = >= 0.13.0, < 0.13.7 | No fix listed |
References
- https://github.com/projectcapsule/capsule/security/advisories/GHSA-f94q-w3w8-cj67 vendor-advisory
- https://github.com/projectcapsule/capsule/pull/1983 patch
- https://github.com/projectcapsule/capsule/commit/8d89d6865df6f41c7faa22fc9e807a57b01bfd0e patch
- github.com product
- https://github.com/projectcapsule/capsule/releases/tag/v0.13.7
- github.com
- ENISA EUVD EUVD-2026-83166 third-party-advisory