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

CVE-2026-4645: XPath Component DoS Vulnerability

CVE-2026-4645 is a denial of service flaw in github.com/antchfx/xpath that allows attackers to cause infinite loops via crafted XPath expressions. This post covers technical details, affected versions, and mitigation.

Published: March 27, 2026

CVE-2026-4645 Overview

A flaw was found in the github.com/antchfx/xpath component, a popular Go library used for XPath query processing. A remote attacker could exploit this vulnerability by submitting crafted Boolean XPath expressions that evaluate to true. This can cause an infinite loop in the logicalQuery.Select function, leading to 100% CPU utilization and a Denial of Service (DoS) condition for the affected system.

Critical Impact

Remote attackers can cause complete service unavailability by triggering an infinite loop through malicious XPath expressions, resulting in full CPU exhaustion without authentication.

Affected Products

  • github.com/antchfx/xpath Go package (versions prior to patch)
  • Applications utilizing the antchfx/xpath library for XPath query processing
  • Go-based services implementing XML/HTML parsing with XPath support

Discovery Timeline

  • 2026-03-23 - CVE-2026-4645 published to NVD
  • 2026-03-23 - Last updated in NVD database

Technical Details for CVE-2026-4645

Vulnerability Analysis

This vulnerability is classified under CWE-835 (Loop with Unreachable Exit Condition), commonly known as an infinite loop vulnerability. The flaw resides in the logicalQuery.Select function within the github.com/antchfx/xpath package. When processing Boolean XPath expressions that evaluate to true, the function fails to properly terminate its iteration, causing the application to enter an infinite loop.

The attack is exploitable remotely over the network without requiring any user interaction or authentication. When triggered, the affected process consumes 100% CPU resources, effectively denying service to legitimate users. This makes it particularly dangerous for web services and APIs that process user-supplied XPath queries.

Root Cause

The root cause lies in the logicalQuery.Select function's handling of Boolean XPath expressions. The original implementation would evaluate the XPath expression and, when the result was a Boolean true value, return the current node without properly advancing the iterator. This design flaw allowed specially crafted Boolean expressions to create a condition where the loop never terminates, as the function continuously evaluates the same true condition without progressing through the query evaluation.

Attack Vector

An attacker can exploit this vulnerability by sending crafted XPath expressions containing Boolean logic that evaluates to true to any application using the vulnerable antchfx/xpath library. The attack requires network access to the target application but does not require any privileges or user interaction. When the malicious XPath expression is processed, the logicalQuery.Select function enters an infinite loop, consuming all available CPU resources and preventing the application from processing legitimate requests.

go
// Security patch in query.go - fix #121
// Before (vulnerable):
func (l *logicalQuery) Select(t iterator) NodeNavigator {
	// When a XPath expr is logical expression.
	node := t.Current().Copy()
	val := l.Evaluate(t)
	switch val.(type) {
	case bool:
		if val.(bool) == true {
			return node
		}
	}
	return nil
}

// After (patched):
func (l *logicalQuery) Select(t iterator) NodeNavigator {
	return nil
}

Source: GitHub Commit for XPath Project

Detection Methods for CVE-2026-4645

Indicators of Compromise

  • Sustained 100% CPU utilization on processes handling XPath query parsing
  • Application unresponsiveness or timeouts when processing XML/HTML content
  • Increased memory consumption in Go-based services utilizing xpath libraries
  • Unusual patterns of XPath queries containing complex Boolean expressions

Detection Strategies

  • Monitor CPU usage patterns for Go applications that implement XPath functionality
  • Implement application-level logging to track XPath query execution times and detect anomalies
  • Deploy runtime application self-protection (RASP) solutions to identify infinite loop conditions
  • Review dependency manifests to identify usage of vulnerable antchfx/xpath versions

Monitoring Recommendations

  • Set up alerts for sustained high CPU utilization exceeding normal thresholds
  • Implement query timeout mechanisms to prevent long-running XPath operations
  • Monitor application response latency to detect service degradation
  • Review Go module dependencies using go list -m -json all to identify vulnerable packages

How to Mitigate CVE-2026-4645

Immediate Actions Required

  • Update the github.com/antchfx/xpath package to the patched version containing commit afd4762cc342af56345a3fb4002a59281fcab494
  • Audit all applications using the antchfx/xpath library and prioritize updates
  • Implement input validation to restrict or sanitize user-supplied XPath expressions
  • Consider deploying rate limiting on endpoints that accept XPath queries

Patch Information

The vulnerability has been addressed in the antchfx/xpath repository. The fix removes the problematic Boolean evaluation logic from the logicalQuery.Select function, preventing the infinite loop condition. For detailed patch information, refer to the GitHub Commit for XPath Project and the related GitHub Issue #121 on XPath. Additional context is available in the Red Hat CVE-2026-4645 Advisory and the GoLang Vulnerability Database Issue #4526.

Workarounds

  • Implement query execution timeouts at the application level to kill long-running XPath operations
  • Restrict XPath functionality to trusted users only until patching is complete
  • Deploy web application firewalls (WAF) with rules to filter suspicious XPath patterns
  • Consider sandboxing XPath query processing in isolated environments with resource limits
bash
# Update Go module to patched version
go get -u github.com/antchfx/xpath@latest

# Verify the updated dependency
go list -m github.com/antchfx/xpath

# Run vulnerability scan on dependencies
go install golang.org/x/vuln/cmd/govulncheck@latest
govulncheck ./...

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechAntchfx Xpath

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.11%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-835
  • Technical References
  • Red Hat CVE-2026-4645 Advisory

  • Red Hat Bug Report #2450214

  • GitHub Commit for XPath Project

  • GitHub Issue #121 on XPath

  • GoLang Vulnerability Database Issue #4526
  • Latest CVEs
  • CVE-2025-52793: Esselink.nu Settings CSRF Vulnerability

  • CVE-2025-52772: Virtual Moderator CSRF Vulnerability

  • CVE-2025-48279: WC MyParcel Belgium XSS Vulnerability

  • CVE-2025-39381: KiotViet Sync CSRF 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