CVE-2026-61794: Capsule: Malformed ForbiddenAnnotations.Regex can bypass Tenant validation and trigger namespace admission panic
A validation bug in internal/webhook/tenant/validation/forbidden_annotations_regex.go allows an invalid ForbiddenAnnotations.Regex value to bypass Tenant admission on update. The webhook compiles ForbiddenLabels.Regex for both labels and annotations, so a malformed annotations regex can be persisted. Once stored, namespace admission later evaluates the bad regex through pkg/api/forbidden_list.go, where regexp.MustCompile can panic and cause admission failure.
References
- github.com/advisories/GHSA-gxjc-74v5-3vx3
- github.com/projectcapsule/capsule/commit/8d89d6865df6f41c7faa22fc9e807a57b01bfd0e
- github.com/projectcapsule/capsule/pull/1983
- github.com/projectcapsule/capsule/releases/tag/v0.13.7
- github.com/projectcapsule/capsule/security/advisories/GHSA-gxjc-74v5-3vx3
- nvd.nist.gov/vuln/detail/CVE-2026-61794
Code Behaviors & Features
Detect and mitigate CVE-2026-61794 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →