# CVE-2026-61795: Capsule: hostnameRegexHandler.OnUpdate validates stale (old) Tenant regex, allowing invalid AllowedHostnames regex to bypass webhook validation

- Severity: Medium 6.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.59%, higher than 42% of CVEs (2026-11-30)
- Published: 2026-09-18T16:31:42.182Z
- Modified: 2026-09-28T17:11:18.134Z
- Also known as: GHSA-f94q-w3w8-cj67, GO-2026-6519
- Weaknesses: CWE-697
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- projectcapsule capsule: >= 0.13.0, < 0.13.7
- github.com/projectcapsule/capsule (Go): from 0.13.0 before 0.13.7

## Every score

- GitHub_M: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:N/A:H`
- GitHub: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:N/A:H`

## References

- <https://github.com/projectcapsule/capsule/security/advisories/GHSA-f94q-w3w8-cj67> (advisory, web)
- <https://github.com/projectcapsule/capsule/pull/1983> (fix, web)
- <https://github.com/projectcapsule/capsule/commit/8d89d6865df6f41c7faa22fc9e807a57b01bfd0e> (fix, web)
- <https://github.com/projectcapsule/capsule/releases/tag/v0.13.7> (web)
- <https://github.com/projectcapsule/capsule> (package)

## Sources

- CVE List: [CVE-2026-61795](https://www.cve.org/CVERecord?id=CVE-2026-61795), CVE Terms of Use, modified 2026-09-21
- GitHub Advisory Database: [GHSA-f94q-w3w8-cj67](https://github.com/advisories/GHSA-f94q-w3w8-cj67), CC-BY-4.0, modified 2026-09-28
- Go Vulnerability Database: [GO-2026-6519](https://pkg.go.dev/vuln/GO-2026-6519), CC-BY-4.0, modified 2026-09-28
- NVD: [CVE-2026-61795](https://nvd.nist.gov/vuln/detail/CVE-2026-61795), Public domain, modified 2026-09-24

---

Page: https://cve.day/CVE-2026-61795 · Whole record: https://cve.day/CVE-2026-61795.json · Rebuilt by cve.day 2026-11-25T22:59:39.632Z
