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

CVE-2026-40516: OpenHarness SSRF Vulnerability

CVE-2026-40516 is a server-side request forgery flaw in OpenHarness that allows attackers to access private HTTP services through manipulated tool parameters. This post covers technical details, affected versions, and mitigation.

Published: April 23, 2026

CVE-2026-40516 Overview

OpenHarness before commit bd4df81 contains a server-side request forgery (SSRF) vulnerability in the web_fetch and web_search tools. This security flaw allows attackers to access private and localhost HTTP services by manipulating tool parameters without proper validation of target addresses. Attackers can influence an agent session to invoke these tools against loopback, RFC1918, link-local, or other non-public addresses to read response bodies from local development services, cloud metadata endpoints, admin panels, or other private HTTP services reachable from the victim host.

Critical Impact

Attackers can leverage this SSRF vulnerability to access internal services, cloud metadata endpoints (such as AWS EC2 metadata at 169.254.169.254), and administrative panels that should not be externally accessible, potentially leading to credential theft and lateral movement within protected networks.

Affected Products

  • OpenHarness (versions before commit bd4df81)
  • OpenHarness web_fetch tool component
  • OpenHarness web_search tool component

Discovery Timeline

  • 2026-04-17 - CVE-2026-40516 published to NVD
  • 2026-04-17 - Last updated in NVD database

Technical Details for CVE-2026-40516

Vulnerability Analysis

This vulnerability is classified as CWE-918 (Server-Side Request Forgery). The web_fetch and web_search tools in OpenHarness accept user-controlled URL parameters without implementing adequate validation to restrict requests to non-public network ranges. When an agent session processes tool invocations, the vulnerable code directly uses the supplied target addresses to initiate HTTP requests from the server side.

The lack of address validation enables attackers to craft malicious tool parameters that target internal network resources. This is particularly dangerous in cloud environments where metadata services (such as AWS EC2 metadata at 169.254.169.254) can be queried to obtain temporary credentials, instance information, and other sensitive configuration data.

Root Cause

The root cause of this vulnerability lies in the insufficient input validation within the permission checking logic of OpenHarness. Prior to the security patch, the _resolve_permission_file_path function and associated permission checkers did not properly validate or restrict URL targets for web-related tools. The code lacked guards to detect and block requests to loopback addresses (127.0.0.0/8), RFC1918 private ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16), and link-local addresses (169.254.0.0/16).

Attack Vector

This vulnerability is exploitable over the network without requiring authentication or user interaction. An attacker can manipulate the parameters passed to the web_fetch or web_search tools through prompt injection or by directly influencing agent sessions. The attack flow typically involves:

  1. Attacker gains ability to influence tool parameters in an OpenHarness agent session
  2. Attacker crafts a request targeting internal IP addresses or hostnames
  3. The vulnerable tools execute the request from the server's network context
  4. Response data from internal services is returned to the attacker

The security patch in src/openharness/engine/query.py and src/openharness/permissions/checker.py addresses this by implementing proper web guards and enhancing path rule validation:

python
         # defence-in-depth measure against LLM-directed or prompt-injection
         # driven access to credential files.
         if file_path:
-            for pattern in SENSITIVE_PATH_PATTERNS:
-                if fnmatch.fnmatch(file_path, pattern):
-                    return PermissionDecision(
-                        allowed=False,
-                        reason=(
-                            f"Access denied: {file_path} is a sensitive credential path "
-                            f"(matched built-in pattern '{pattern}')"
-                        ),
-                    )
+            for candidate_path in _policy_match_paths(file_path):
+                for pattern in SENSITIVE_PATH_PATTERNS:
+                    if fnmatch.fnmatch(candidate_path, pattern):
+                        return PermissionDecision(
+                            allowed=False,
+                            reason=(
+                                f"Access denied: {file_path} is a sensitive credential path "
+                                f"(matched built-in pattern '{pattern}')"
+                            ),
+                        )

Source: GitHub Commit bd4df81

Detection Methods for CVE-2026-40516

Indicators of Compromise

  • Outbound HTTP requests from the OpenHarness server targeting internal IP ranges (127.0.0.1, 10.x.x.x, 172.16-31.x.x, 192.168.x.x)
  • Requests to cloud metadata endpoints (e.g., 169.254.169.254)
  • Agent session logs showing web_fetch or web_search tool invocations with private/internal URL targets
  • Unexpected access to internal admin panels or development services from the OpenHarness host

Detection Strategies

  • Implement network monitoring to detect egress traffic from OpenHarness servers to RFC1918 addresses and link-local ranges
  • Enable detailed logging for all web_fetch and web_search tool invocations and analyze URL parameters
  • Deploy web application firewalls (WAF) with SSRF detection rules to identify attempts to access internal resources
  • Monitor for anomalous DNS queries resolving to internal IP addresses from OpenHarness hosts

Monitoring Recommendations

  • Configure alerts for any HTTP requests originating from OpenHarness servers to internal network segments
  • Implement cloud security monitoring to detect access to metadata service endpoints (169.254.169.254)
  • Review agent session logs for suspicious tool parameter patterns indicating SSRF attempts
  • Enable SentinelOne's network visibility features to track server-side request patterns and identify anomalous internal communications

How to Mitigate CVE-2026-40516

Immediate Actions Required

  • Update OpenHarness to commit bd4df81 or later which contains the security fix
  • Review agent session logs to identify any previous exploitation attempts targeting internal services
  • Audit network access controls to ensure OpenHarness servers cannot reach sensitive internal resources
  • If immediate patching is not possible, disable or restrict access to web_fetch and web_search tools

Patch Information

The vulnerability has been addressed in GitHub commit bd4df81, which implements hardened path rules and web guards. The fix was introduced via Pull Request #92. Organizations should update their OpenHarness installations to include this commit or any subsequent release containing this fix. Additional details are available in the VulnCheck Security Advisory.

Workarounds

  • Implement network-level controls to block outbound connections from OpenHarness servers to internal networks and cloud metadata endpoints
  • Deploy a proxy server between OpenHarness and external networks with URL filtering to block private IP ranges
  • Disable the web_fetch and web_search tools in OpenHarness configuration if they are not essential for operations
bash
# Network-level mitigation using iptables to block SSRF to internal ranges
# Block requests to localhost
iptables -A OUTPUT -d 127.0.0.0/8 -m owner --uid-owner openharness -j DROP
# Block requests to RFC1918 private networks
iptables -A OUTPUT -d 10.0.0.0/8 -m owner --uid-owner openharness -j DROP
iptables -A OUTPUT -d 172.16.0.0/12 -m owner --uid-owner openharness -j DROP
iptables -A OUTPUT -d 192.168.0.0/16 -m owner --uid-owner openharness -j DROP
# Block requests to cloud metadata endpoint
iptables -A OUTPUT -d 169.254.169.254 -m owner --uid-owner openharness -j DROP

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

  • Vulnerability Details
  • TypeSSRF

  • Vendor/TechOpenharness

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.05%

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

  • GitHub Pull Request #92

  • VulnCheck Security Advisory
  • Related CVEs
  • CVE-2026-40503: OpenHarness Path Traversal Vulnerability

  • CVE-2026-40502: OpenHarness Command Injection Vulnerability

  • CVE-2026-22682: OpenHarness 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