CVE-2026-22728: Sealed Secrets for Kubernetes: Rotate API Allows Scope Widening from Strict/Namespace-Wide to Cluster-Wide via Untrusted Template Annotations
This report shows a scope-widening issue in the rotate (re-encrypt) flow: the output scope can be derived from untrusted spec.template.metadata.annotations on the input sealed secret.
If a victim sealed secret is strict- or namespace-scoped, an attacker who can submit it to the rotate endpoint can set sealedsecrets.bitnami.com/cluster-wide=true in the template metadata and receive a rotated sealed secret that is cluster-wide, enabling retargeting (metadata.name/metadata.namespace) and unsealing to recover the victim plaintext.
References
- github.com/advisories/GHSA-465p-v42x-3fmj
- github.com/bitnami-labs/sealed-secrets
- github.com/bitnami-labs/sealed-secrets/commit/d57ee4a8357d250e602b995399b525496ab688c1
- github.com/bitnami-labs/sealed-secrets/releases/tag/v0.36.0
- github.com/bitnami-labs/sealed-secrets/security/advisories/GHSA-465p-v42x-3fmj
- nvd.nist.gov/vuln/detail/CVE-2026-22728
Code Behaviors & Features
Detect and mitigate CVE-2026-22728 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 →