Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-22822

CVE-2026-22822: External Secrets Operator Auth Bypass Flaw

CVE-2026-22822 is an authentication bypass vulnerability in External Secrets Operator that allows cross-namespace secret access. This post covers the technical details, affected versions, security impact, and mitigation steps.

Published: January 23, 2026

CVE-2026-22822 Overview

CVE-2026-22822 is a critical authorization bypass vulnerability in External Secrets Operator, a Kubernetes component that reads information from third-party secret management services and automatically injects values as Kubernetes Secrets. The vulnerability exists in the getSecretKey template function, which was originally introduced for senhasegura DevOps Secrets Management (DSM) provider integration.

This flaw allows attackers with low privileges to fetch secrets across namespaces using the roleBinding of the external-secrets controller, effectively bypassing the security isolation mechanisms designed to prevent cross-namespace secret access in Kubernetes environments.

Critical Impact

Attackers with minimal local privileges can access secrets from any namespace in the Kubernetes cluster, potentially exposing database credentials, API keys, encryption keys, and other sensitive configuration data stored across the entire cluster.

Affected Products

  • External Secrets Operator versions 0.20.2 through 1.1.x
  • Kubernetes deployments using the vulnerable getSecretKey template function
  • senhasegura DevOps Secrets Management (DSM) provider integrations

Discovery Timeline

  • 2026-01-21 - CVE CVE-2026-22822 published to NVD
  • 2026-01-21 - Last updated in NVD database

Technical Details for CVE-2026-22822

Vulnerability Analysis

This vulnerability is classified as CWE-863 (Incorrect Authorization). The core issue lies in the getSecretKey template function's ability to bypass namespace isolation, a fundamental security boundary in Kubernetes multi-tenant environments.

In Kubernetes, namespaces serve as a critical security boundary for isolating workloads and their associated secrets. The External Secrets Operator is designed to respect these boundaries, ensuring that ExternalSecret resources can only reference secrets within their own namespace. However, the getSecretKey function inadvertently provides a mechanism to circumvent this protection by leveraging the elevated roleBinding permissions of the external-secrets controller itself, rather than the permissions of the requesting workload.

Root Cause

The root cause stems from a design flaw in the getSecretKey template function implementation. When the function was introduced to support senhasegura DSM provider functionality, it was granted the ability to operate with the external-secrets controller's cluster-wide roleBinding permissions rather than being scoped to the namespace of the requesting ExternalSecret resource. This architectural oversight allowed any user who could create or modify ExternalSecret resources to craft templates that would fetch secrets from any namespace in the cluster, regardless of their actual authorization level.

Attack Vector

The attack vector requires local access to the Kubernetes cluster with permissions to create or modify ExternalSecret resources. An attacker would craft a malicious ExternalSecret manifest that includes the getSecretKey template function configured to target secrets in namespaces outside their authorized scope. When the external-secrets controller processes this resource, it executes the template function with its own elevated permissions, effectively performing a privilege escalation attack.

The vulnerability is particularly dangerous in multi-tenant Kubernetes environments where different teams or applications are isolated using namespace boundaries. An attacker in one namespace could potentially access database credentials, API tokens, or other sensitive data belonging to completely separate tenants.

Detection Methods for CVE-2026-22822

Indicators of Compromise

  • ExternalSecret resources containing getSecretKey function calls referencing namespaces different from their own deployment namespace
  • Unusual audit log entries showing secret access patterns crossing namespace boundaries
  • ExternalSecret manifests with template syntax targeting sensitive namespaces such as kube-system, monitoring, or production environments
  • Unexpected secret synchronization activity in the external-secrets controller logs

Detection Strategies

  • Implement Kubernetes admission controller policies (using Kyverno, OPA/Gatekeeper, or Kubewarden) to detect and block ExternalSecret resources containing getSecretKey function calls
  • Enable and monitor Kubernetes audit logs for ExternalSecret resource creation and modification events
  • Configure alerting for any ExternalSecret resources that reference namespaces other than their deployed namespace
  • Perform regular scanning of existing ExternalSecret resources across all namespaces to identify potentially malicious configurations

Monitoring Recommendations

  • Enable verbose logging on the external-secrets controller to track template function execution
  • Implement SIEM rules to correlate ExternalSecret creation events with cross-namespace secret access patterns
  • Monitor for unusual secret access patterns in Kubernetes audit logs, particularly secrets being read by the external-secrets service account from multiple namespaces in quick succession
  • Set up alerts for any new or modified ExternalSecret resources containing template functions

How to Mitigate CVE-2026-22822

Immediate Actions Required

  • Upgrade External Secrets Operator to version 1.2.0 or later immediately, as this version completely removes the vulnerable getSecretKey function
  • If immediate upgrade is not possible, deploy a policy engine to block getSecretKey usage as a temporary workaround
  • Audit all existing ExternalSecret resources in your cluster to identify any that may be using the getSecretKey function
  • Review Kubernetes audit logs to determine if any unauthorized cross-namespace secret access has occurred

Patch Information

The vulnerability has been fully remediated in External Secrets Operator version 1.2.0. The fix completely removes the getSecretKey template function from the codebase. According to the maintainers, all functionality previously provided by this templating function can be achieved through alternative methods that properly respect External Secrets Operator's namespace isolation safeguards.

For detailed patch information, refer to:

  • GitHub Security Advisory GHSA-77v3-r3jw-j2v2
  • GitHub Release v1.2.0
  • GitHub Commit Update

Workarounds

  • Deploy a policy engine such as Kyverno, Kubewarden, or OPA Gatekeeper configured to deny any ExternalSecret resources containing the getSecretKey function in their templates
  • Implement Kubernetes RBAC policies to restrict which users and service accounts can create or modify ExternalSecret resources
  • Consider temporarily disabling the external-secrets controller in highly sensitive environments until the upgrade can be completed
  • If using senhasegura DSM provider, work with your security team to implement alternative secret injection methods that don't rely on the vulnerable function
bash
# Example Kyverno policy to block getSecretKey usage
# Save as block-getsecretkey-policy.yaml and apply with kubectl
cat <<EOF | kubectl apply -f -
apiVersion: kyverno.io/v1
kind: ClusterPolicy
metadata:
  name: block-getsecretkey-function
spec:
  validationFailureAction: Enforce
  background: true
  rules:
  - name: deny-getsecretkey
    match:
      any:
      - resources:
          kinds:
          - ExternalSecret
    validate:
      message: "The getSecretKey function is prohibited due to CVE-2026-22822"
      pattern:
        spec:
          target:
            template:
              data:
                "X(*)": "!*getSecretKey*"
EOF

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechExternal Secrets Operator

  • SeverityCRITICAL

  • CVSS Score9.3

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-863
  • Technical References
  • GitHub Commit Update

  • GitHub Issue Discussion

  • GitHub Pull Request

  • GitHub Release v1.2.0

  • GitHub Security Advisory GHSA-77v3-r3jw-j2v2
  • Related CVEs
  • CVE-2025-62159: External Secrets Operator Auth Bypass

  • CVE-2026-34984: External Secrets Operator DNS Leak Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English