A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-42876

CVE-2026-42876: External Secrets Operator Escalation Flaw

CVE-2026-42876 is a privilege escalation vulnerability in External Secrets Operator that allows unauthorized service account impersonation. This article covers the technical details, affected versions, and mitigations.

Published: May 18, 2026

CVE-2026-42876 Overview

CVE-2026-42876 is an authorization flaw in the External Secrets Operator, a Kubernetes controller that reads values from third-party secret stores and injects them as Kubernetes Secrets. Versions prior to 2.4.1 fail to restrict the type of Secret an ExternalSecret resource can request. A user holding only create permission on ExternalSecret objects can instruct the operator to produce a Secret of type kubernetes.io/service-account-token. Kubernetes then automatically populates that Secret with a long-lived token for the referenced service account. The attacker effectively impersonates any service account in the namespace without ever holding TokenRequest or service account token creation rights. The issue is tracked under CWE-285: Improper Authorization and fixed in release 2.4.1.

Critical Impact

Authenticated namespace users can mint long-lived service account tokens and impersonate any service account in that namespace, bypassing native Kubernetes RBAC boundaries on TokenRequest and token-type Secrets.

Affected Products

  • External Secrets Operator versions prior to 2.4.1
  • Kubernetes clusters running the operator with namespace users granted create on ExternalSecret resources
  • Multi-tenant clusters relying on the operator for secret synchronization

Discovery Timeline

  • 2026-05-11 - CVE-2026-42876 published to NVD
  • 2026-05-13 - Last updated in NVD database

Technical Details for CVE-2026-42876

Vulnerability Analysis

The External Secrets Operator reconciles ExternalSecret custom resources by fetching values from a configured backend and writing them into a Kubernetes Secret. Prior to version 2.4.1, the admission validator did not constrain the spec.target.template.type field of the generated Secret. An attacker submits an ExternalSecret with type: kubernetes.io/service-account-token and an annotation referencing a privileged service account in the same namespace. The operator creates the Secret with that type. The Kubernetes Token Controller observes the new token-type Secret and populates its data.token field with a non-expiring JWT bound to the referenced service account. The attacker then reads the Secret and uses the token to act as that service account against the API server.

Root Cause

The operator's webhook validator in apis/externalsecrets/v1/externalsecret_validator.go and the corresponding v1beta1 validator did not enforce a deny-list on Secret types that trigger automatic credential population by kube-controller-manager. The fix introduces corev1 type checks and rejects ExternalSecret resources that request corev1.SecretTypeServiceAccountToken. This represents a missing authorization check, classified as [CWE-285].

Attack Vector

The attack requires a low-privilege authenticated user inside a target namespace who can create ExternalSecret objects. No direct permission on TokenRequest, serviceaccounts/token, or Secrets of token type is needed. The user crafts an ExternalSecret whose target template declares kubernetes.io/service-account-token and references a high-privilege service account by name. After reconciliation, the user reads the resulting Secret and extracts the token.

go
// Patch excerpt: apis/externalsecrets/v1/externalsecret_validator.go
 	"context"
 	"errors"
 	"fmt"
+	"strings"
 
+	corev1 "k8s.io/api/core/v1"
 	"sigs.k8s.io/controller-runtime/pkg/webhook/admission"
 )

Source: external-secrets commit 4ddd240a

The patch imports corev1 so the validator can compare the requested Secret type against corev1.SecretTypeServiceAccountToken and reject the request before reconciliation. An identical change is applied to the v1beta1 validator.

Detection Methods for CVE-2026-42876

Indicators of Compromise

  • ExternalSecret resources whose template specifies type: kubernetes.io/service-account-token.
  • Newly created Secrets of type kubernetes.io/service-account-token carrying the kubernetes.io/service-account.name annotation but not owned by a ServiceAccount object.
  • Audit log entries showing create on externalsecrets.external-secrets.io followed shortly by get on a Secret in the same namespace.
  • API server activity using a service account token from a Secret that was synthesized by the operator rather than auto-mounted at pod start.

Detection Strategies

  • Run Kubernetes audit policy at Metadata or higher and alert on ExternalSecret create events with embedded serviceAccountToken type strings.
  • Compare Secrets of type kubernetes.io/service-account-token against their owning ServiceAccount references and flag mismatches.
  • Hunt across cluster audit logs for service account token usage originating from IP addresses or user agents that do not match the workload that normally mounts that token.

Monitoring Recommendations

  • Forward Kubernetes API server audit logs to a centralized analytics platform and retain ExternalSecret and Secret create events for correlation.
  • Track the version of the External Secrets Operator deployed in every cluster and alert when versions below 2.4.1 are observed.
  • Monitor RBAC bindings that grant create on externalsecrets.external-secrets.io and review whether those subjects also need indirect token issuance capability.

How to Mitigate CVE-2026-42876

Immediate Actions Required

  • Upgrade the External Secrets Operator to version 2.4.1 or later in every cluster.
  • Inventory existing Secrets of type kubernetes.io/service-account-token created since the operator was installed and rotate any tokens that were generated through an ExternalSecret.
  • Restrict create permissions on ExternalSecret resources to trusted automation and remove broad namespace user grants until the upgrade is complete.
  • Review service accounts in shared namespaces and tighten RBAC bindings so impersonation of privileged accounts has limited blast radius.

Patch Information

The fix is delivered in External Secrets Operator v2.4.1. The validator change in commit 4ddd240a rejects any ExternalSecret requesting a Secret of type kubernetes.io/service-account-token. Full technical details are documented in GHSA-fq7h-9x26-6j22.

Workarounds

  • Deploy an admission policy using Kyverno or OPA Gatekeeper that denies ExternalSecret resources whose spec.target.template.type equals kubernetes.io/service-account-token.
  • Use a ValidatingAdmissionPolicy to block creation of Secrets of type kubernetes.io/service-account-token outside of trusted controllers.
  • Limit operator deployment to namespaces whose users are already trusted to issue service account tokens, eliminating the privilege boundary the bug crosses.
bash
# Kyverno ClusterPolicy blocking service-account-token ExternalSecrets
kubectl apply -f - <<'EOF'
apiVersion: kyverno.io/v1
kind: ClusterPolicy
metadata:
  name: deny-eso-sa-token
spec:
  validationFailureAction: Enforce
  rules:
    - name: block-sa-token-type
      match:
        any:
          - resources:
              kinds:
                - ExternalSecret
      validate:
        message: "ExternalSecret may not create service-account-token Secrets"
        pattern:
          spec:
            target:
              template:
                type: "!kubernetes.io/service-account-token"
EOF

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechExternal Secrets Operator

  • SeverityMEDIUM

  • CVSS Score4.9

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-285
  • Technical References
  • GitHub Commit Overview

  • GitHub Release v2.4.1

  • GitHub Security Advisory GHSA-fq7h-9x26-6j22
  • Related CVEs
  • CVE-2026-42875: External Secrets Operator Auth Bypass

  • CVE-2025-55196: External Secrets Operator Vulnerability

  • CVE-2026-34984: External Secrets Operator DNS Leak Flaw

  • CVE-2026-22822: External Secrets Operator Auth Bypass Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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