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-41391

CVE-2026-41391: OpenClaw Auth Bypass Vulnerability

CVE-2026-41391 is an authentication bypass vulnerability in OpenClaw that allows attackers to redirect Python package-index traffic through unsanitized environment variables. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: April 30, 2026

CVE-2026-41391 Overview

OpenClaw before version 2026.3.31 contains an input validation vulnerability that fails to properly sanitize PIP_INDEX_URL and UV_INDEX_URL environment variables in host execution contexts. This security flaw allows attackers to redirect Python package-index traffic by injecting malicious index URLs through unsanitized environment variables, potentially enabling package management interception or manipulation.

Critical Impact

Attackers can exploit this bypass to intercept or manipulate package management operations, potentially leading to supply chain attacks through malicious package injection.

Affected Products

  • OpenClaw versions prior to 2026.3.31

Discovery Timeline

  • 2026-04-28 - CVE CVE-2026-41391 published to NVD
  • 2026-04-28 - Last updated in NVD database

Technical Details for CVE-2026-41391

Vulnerability Analysis

This vulnerability is classified under CWE-184 (Incomplete List of Disallowed Inputs), indicating that the security policy blocking dangerous environment variables was missing critical entries. OpenClaw's host environment security policy maintained a blocklist of environment variables that could be used to redirect or manipulate execution contexts. However, several Python package manager environment variables were not included in this blocklist, creating a security gap.

The flaw allows local attackers with limited privileges to inject environment variables that control where Python package managers fetch packages from. By setting variables like PIP_INDEX_URL or UV_INDEX_URL, an attacker can redirect package installations to a malicious index server, potentially delivering trojanized packages during installation operations.

Root Cause

The root cause is an incomplete blocklist in OpenClaw's host environment security policy. The HostEnvSecurityPolicy component was designed to prevent environment variable abuse but failed to include Python package index URL environment variables (PIP_INDEX_URL, PIP_PYPI_URL, PIP_EXTRA_INDEX_URL, UV_INDEX, UV_INDEX_URL, UV_DEFAULT_INDEX, UV_EXTRA_INDEX_URL) in its disallowed list. This oversight allowed these variables to pass through unsanitized into host execution contexts.

Attack Vector

The attack requires local access and involves setting Python package manager environment variables before OpenClaw executes package management operations. An attacker with low privileges can:

  1. Set environment variables like PIP_INDEX_URL to point to an attacker-controlled package index
  2. Trigger package installation operations through OpenClaw
  3. Intercept package requests or serve malicious packages from the rogue index

The security patch adds the missing environment variables to the blocklist:

text
         "PHP_INI_SCAN_DIR",
         "DENO_DIR",
         "BUN_CONFIG_REGISTRY",
+        "PIP_INDEX_URL",
+        "PIP_PYPI_URL",
+        "PIP_EXTRA_INDEX_URL",
+        "UV_INDEX",
+        "UV_INDEX_URL",
+        "UV_DEFAULT_INDEX",
+        "UV_EXTRA_INDEX_URL",
         "LUA_PATH",
         "LUA_CPATH",
         "GEM_HOME",

Source: GitHub Commit Changes

Detection Methods for CVE-2026-41391

Indicators of Compromise

  • Unexpected values in PIP_INDEX_URL, UV_INDEX_URL, or related Python package index environment variables
  • Package installation traffic directed to non-standard or unknown package index servers
  • Process execution logs showing OpenClaw with suspicious environment variable configurations

Detection Strategies

  • Monitor environment variable configurations for Python package manager index URL variables in OpenClaw execution contexts
  • Implement network monitoring to detect package installation traffic to unauthorized index servers
  • Audit system logs for unexpected environment variable manipulation prior to OpenClaw operations

Monitoring Recommendations

  • Enable logging for environment variable changes in systems running OpenClaw
  • Configure network security tools to alert on connections to non-PyPI package indexes during OpenClaw operations
  • Implement file integrity monitoring on OpenClaw configuration and policy files

How to Mitigate CVE-2026-41391

Immediate Actions Required

  • Upgrade OpenClaw to version 2026.3.31 or later immediately
  • Audit existing OpenClaw installations for signs of exploitation
  • Review installed Python packages for unexpected or tampered dependencies

Patch Information

The security fix is available in OpenClaw version 2026.3.31 and later. The patch modifies both HostEnvSecurityPolicy.generated.swift (macOS) and host-env-security-policy.json (infrastructure) to add the missing Python package index environment variables to the blocklist. For detailed patch information, see the GitHub Commit and the GitHub Security Advisory.

Workarounds

  • Manually clear or unset Python package index environment variables (PIP_INDEX_URL, PIP_PYPI_URL, PIP_EXTRA_INDEX_URL, UV_INDEX, UV_INDEX_URL, UV_DEFAULT_INDEX, UV_EXTRA_INDEX_URL) before running OpenClaw operations
  • Implement strict environment variable controls at the system level to prevent unauthorized modifications
  • Use network-level controls to restrict package installation traffic to authorized PyPI mirrors only
bash
# Clear Python package index environment variables before OpenClaw execution
unset PIP_INDEX_URL PIP_PYPI_URL PIP_EXTRA_INDEX_URL
unset UV_INDEX UV_INDEX_URL UV_DEFAULT_INDEX UV_EXTRA_INDEX_URL

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechOpenclaw

  • SeverityMEDIUM

  • CVSS Score5.8

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N/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
  • AvailabilityNone
  • CWE References
  • CWE-184
  • Technical References
  • GitHub Commit Changes

  • GitHub Security Advisory

  • VulnCheck Advisory Analysis
  • Related CVEs
  • CVE-2026-43574: Openclaw Auth Bypass Vulnerability

  • CVE-2026-43572: Openclaw Authorization Bypass Vulnerability

  • CVE-2026-43571: Openclaw Auth Bypass Vulnerability

  • CVE-2026-43530: Openclaw Auth Bypass Vulnerability
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