# CVE-2026-61672: Capsule forbidden namespace/service/node label and annotation enforcement bypass

Source: https://junglewise.ai/threats/cve-2026-61672-capsule-forbidden-namespace-service-node-label-and-annotation  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-09-18. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2026-61672 · Severity: high · CVSS 7.1 · Published 2026-09-18

Capsule is a Kubernetes multi-tenancy framework that enforces isolation by forbidding tenant owners from setting certain sensitive metadata keys on namespaces, services, and nodes. A flaw in the binary search logic used to check forbidden keys allows tenant owners to bypass this control and set metadata the administrator explicitly forbade. This undermines Capsule's core tenant isolation guarantees and could allow cross-tenant or system-level effects when the forbidden list contains mixed-case entries.

Technologies: [github.com/projectcapsule/capsule (Go)](https://junglewise.ai/threats/technologies/github-com-projectcapsule-capsule). Vendors: [Go](https://junglewise.ai/threats/vendors/go).

## Quick answers

**Is CVE-2026-61672 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-61672 being exploited in the wild.

**How severe is CVE-2026-61672?** High severity, with a CVSS score of 7.1, published 18 September 2026.

**Which products and versions are affected?** github.com/projectcapsule/capsule (Go) <= 0.13.6, SEMVER:introduced=0,fixed=0.13.7.

**Is there a fix for CVE-2026-61672?** Yes. github.com/projectcapsule/capsule (Go): upgrade to 0.13.7 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-61672 attacked?** It is attacked over the network.

**Am I affected by CVE-2026-61672?** Check whether you run github.com/projectcapsule/capsule (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/projectcapsule/capsule (Go): upgrade to 0.13.7 or later

  ```sh
  go get github.com/projectcapsule/capsule@v0.13.7
  ```


## Technical details

The vulnerability is a logic error in the `ExactMatch` function in `pkg/api/forbidden_list.go`. The code sorts the forbidden-key list using a case-insensitive comparator (`strings.ToLower`) but then performs a binary search using `sort.SearchStrings`, which assumes byte-order sorting. When the forbidden list contains mixed-case entries (e.g., capitalised keys like `NetworkPolicy` alongside lowercase keys like `kubernetes.io/metadata.name`), the case-insensitive and byte-order sorts diverge, causing the binary search to land on the wrong index and incorrectly report that a forbidden key is not present. A tenant owner (authenticated and holding delegated rights to patch/create their own resources) can deterministically exploit this to set forbidden metadata by submitting a key that the binary search misses. The attack requires the administrator's denied list to contain at least one entry whose case-insensitive sort order differs from its byte order—the most common scenario being a mix of CamelCase and lowercase keys. A complete proof of concept is included in the advisory.

## Affected products

- Capsule Capsule v0.13.5 (and other versions with the buggy code in pkg/api/forbidden_list.go; main HEAD is also affected)

## Identifiers

- CVE-2026-61672
- GHSA-gjw4-3v3v-rqxg
- GO-2026-6520

## Timeline

- 2026-09-18: disclosed: GHSA-gjw4-3v3v-rqxg published
- 2026-01: other: CVE-2026-61672 assigned

## Related threats

- [Capsule hostnameRegexHandler parameter order bypass in webhook validation](https://junglewise.ai/threats/cve-2026-61795-capsule-hostnameregexhandler-parameter-order-bypass-in-webhook)
- [Capsule Tenant ForbiddenAnnotations.Regex validation bypass](https://junglewise.ai/threats/cve-2026-61794-capsule-tenant-forbiddenannotations-regex-validation-bypass)
- [Clastix Capsule incorrect authorization via typo in namespaces/finalize webhook](https://junglewise.ai/threats/cve-2026-55636-clastix-capsule-incorrect-authorization-via-typo-in-namespaces)
- [Project Capsule privilege escalation in TenantResource controller](https://junglewise.ai/threats/cve-2026-65835-project-capsule-privilege-escalation-in-tenantresource-controller)
- [Project Capsule Denial of Service via malformed NodeMetadata regex](https://junglewise.ai/threats/cve-2026-65834-project-capsule-denial-of-service-via-malformed-nodemetadata)
