The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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-40868

CVE-2026-40868: Kyverno Auth Bypass Vulnerability

CVE-2026-40868 is an authentication bypass flaw in Kyverno that allows attackers to exploit the apiCall service helper to steal serviceaccount tokens. This post covers the technical details, affected versions, and mitigation.

Published: April 23, 2026

CVE-2026-40868 Overview

CVE-2026-40868 is a confused deputy vulnerability in Kyverno, a policy engine designed for cloud native platform engineering teams. Prior to version 1.16.4, Kyverno's apiCall servicecall helper implicitly injects an Authorization: Bearer header using the Kyverno controller serviceaccount token when a policy does not explicitly set an Authorization header. Because context.apiCall.service.url is policy-controlled, this can send the Kyverno serviceaccount token to an attacker-controlled endpoint.

This vulnerability is classified under CWE-922 (Insecure Storage of Sensitive Information) and represents a significant security risk in Kubernetes environments where Kyverno is deployed for policy enforcement.

Critical Impact

An attacker who can create or modify ClusterPolicy resources can exfiltrate the Kyverno controller's serviceaccount token, potentially gaining elevated privileges within the Kubernetes cluster.

Affected Products

  • Kyverno versions prior to 1.16.4
  • ClusterPolicy configurations using context.apiCall.service calls
  • Global context usage with external service calls

Discovery Timeline

  • 2026-04-21 - CVE CVE-2026-40868 published to NVD
  • 2026-04-22 - Last updated in NVD database

Technical Details for CVE-2026-40868

Vulnerability Analysis

The vulnerability exists in Kyverno's service call functionality used within policy contexts. When a ClusterPolicy or global context makes an external API call using context.apiCall.service, the Kyverno engine automatically attaches the controller's serviceaccount token as a Bearer authorization header if no explicit Authorization header is specified in the policy configuration.

This behavior creates a confused deputy scenario where the trusted Kyverno controller acts on behalf of a potentially malicious policy definition. An attacker with privileges to create ClusterPolicy resources can craft a policy that points to an attacker-controlled endpoint, causing Kyverno to inadvertently leak its highly privileged serviceaccount token.

Namespaced policies are protected from this attack because the namespaced urlPath gate in pkg/engine/apicall/apiCall.go blocks servicecall usage for namespace-scoped policies. However, ClusterPolicy and global context configurations remain vulnerable in versions prior to 1.16.4.

Root Cause

The root cause is the implicit injection of authentication credentials without explicit user consent or awareness. The apiCall servicecall helper assumes that all service calls should be authenticated with the controller's serviceaccount token, regardless of whether the destination endpoint is trusted or attacker-controlled.

This design decision violates the principle of least privilege and creates an insecure default behavior where sensitive credentials are transmitted to arbitrary endpoints specified in policy configurations.

Attack Vector

The attack requires network access and low privileges (ability to create or modify ClusterPolicy resources). An attacker can exploit this vulnerability by:

  1. Creating a ClusterPolicy with a context.apiCall.service block that points to an attacker-controlled external endpoint
  2. Triggering the policy evaluation through normal Kubernetes operations
  3. Capturing the Kyverno serviceaccount token from the incoming request at the attacker's endpoint
  4. Using the captured token to authenticate to the Kubernetes API with the privileges of the Kyverno controller

The vulnerability mechanism involves the implicit credential injection in the servicecall helper. When processing a ClusterPolicy with an external service call, Kyverno retrieves its serviceaccount token and automatically adds it as a Bearer token in the Authorization header. Since the destination URL is policy-controlled, an attacker can specify any endpoint, including malicious servers designed to capture credentials. For complete technical details, refer to the GitHub Security Advisory.

Detection Methods for CVE-2026-40868

Indicators of Compromise

  • Unusual outbound network connections from Kyverno controller pods to external endpoints
  • ClusterPolicy resources with context.apiCall.service.url pointing to non-trusted domains
  • Authentication failures or unusual activity using Kyverno serviceaccount credentials
  • Kubernetes API audit logs showing unexpected operations performed by the Kyverno serviceaccount

Detection Strategies

  • Monitor ClusterPolicy resources for external service call configurations with suspicious or unknown URLs
  • Implement network policies to restrict egress traffic from Kyverno controller pods to approved endpoints only
  • Review Kubernetes audit logs for ClusterPolicy creation or modification events by non-administrative users
  • Deploy runtime security monitoring to detect unusual token usage patterns from Kyverno serviceaccounts

Monitoring Recommendations

  • Configure alerts for any ClusterPolicy changes that include context.apiCall.service configurations
  • Implement egress traffic monitoring for Kyverno controller namespaces
  • Enable Kubernetes audit logging at the RequestResponse level for policy-related resources
  • Monitor for any external network connections from the Kyverno controller that deviate from expected baselines

How to Mitigate CVE-2026-40868

Immediate Actions Required

  • Upgrade Kyverno to version 1.16.4 or later immediately
  • Audit all existing ClusterPolicy resources for external service call configurations
  • Implement network policies to restrict Kyverno controller egress to known trusted endpoints
  • Review RBAC permissions to ensure only authorized users can create or modify ClusterPolicy resources

Patch Information

The vulnerability is fixed in Kyverno version 1.16.4. Organizations should upgrade to this version or later as the primary remediation action. The fix ensures that serviceaccount tokens are not implicitly attached to external service calls without explicit configuration, preventing the confused deputy attack scenario.

For detailed patch information, refer to the GitHub Security Advisory.

Workarounds

  • Restrict ClusterPolicy creation and modification permissions to trusted administrators only using Kubernetes RBAC
  • Implement network policies that prevent Kyverno controller pods from making connections to external endpoints
  • Use admission controllers to validate and reject ClusterPolicy resources with external service call URLs
  • Deploy service mesh policies to control and monitor egress traffic from the Kyverno namespace
bash
# Example: NetworkPolicy to restrict Kyverno egress
kubectl apply -f - <<EOF
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: kyverno-egress-restriction
  namespace: kyverno
spec:
  podSelector:
    matchLabels:
      app.kubernetes.io/component: kyverno
  policyTypes:
  - Egress
  egress:
  - to:
    - namespaceSelector: {}
  - to:
    - ipBlock:
        cidr: 10.0.0.0/8
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/TechKyverno

  • SeverityHIGH

  • CVSS Score8.1

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-922
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-22039: Kyverno Authorization Bypass Vulnerability

  • CVE-2026-44245: Kyverno Policy Engine XSS Vulnerability

  • CVE-2026-41485: Kyverno Policy Engine DoS Vulnerability

  • CVE-2026-41323: Kyverno Information Disclosure 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