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

CVE-2026-32287: XPath Query Processing DoS Vulnerability

CVE-2026-32287 is a denial of service flaw in XPath query processing where boolean expressions cause infinite loops and 100% CPU usage. This article covers the technical details, affected systems, and mitigation strategies.

Published: March 27, 2026

CVE-2026-32287 Overview

CVE-2026-32287 is a Denial of Service vulnerability affecting the antchfx/xpath Go library. Boolean XPath expressions that evaluate to true can cause an infinite loop in logicalQuery.Select, leading to 100% CPU usage. This vulnerability can be triggered by top-level selectors such as 1=1 or true(), allowing attackers to exhaust server CPU resources with specially crafted XPath queries.

Critical Impact

Applications using the antchfx/xpath library to process user-supplied XPath expressions are vulnerable to CPU exhaustion attacks that can render services unresponsive.

Affected Products

  • antchfx/xpath Go library (versions prior to the security patch)
  • Applications using antchfx/xpath for XPath query processing
  • Go applications processing untrusted XPath input

Discovery Timeline

  • 2026-03-26 - CVE CVE-2026-32287 published to NVD
  • 2026-03-26 - Last updated in NVD database

Technical Details for CVE-2026-32287

Vulnerability Analysis

This vulnerability exists in the XPath query processing logic within the antchfx/xpath library. When processing Boolean XPath expressions that evaluate to true (such as 1=1 or true()), the logicalQuery.Select function enters an infinite loop. This occurs because the function was designed to return the current node when a Boolean expression evaluates to true, but failed to properly terminate the iteration, causing the function to repeatedly return the same node indefinitely.

The vulnerability is particularly dangerous in web applications or services that accept user-controlled XPath queries, as an attacker can trivially craft a malicious query to exhaust CPU resources and cause a denial of service condition.

Root Cause

The root cause lies in the Select method of the logicalQuery struct in query.go. The original implementation evaluated the XPath expression and, when encountering a Boolean result that was true, returned the current node. However, this logic created a condition where the iterator would never advance, causing the same node to be returned repeatedly in an infinite loop.

Attack Vector

An attacker can exploit this vulnerability by submitting XPath queries containing Boolean expressions that always evaluate to true. Common attack payloads include:

  • 1=1 - A simple Boolean comparison that always returns true
  • true() - The XPath true() function
  • not(false()) - Negated false expression

When processed by the vulnerable library, these expressions cause the CPU to spike to 100% utilization as the Select function enters an infinite loop.

go
// Vulnerable code removed in the security patch
// Source: https://github.com/antchfx/xpath/commit/afd4762cc342af56345a3fb4002a59281fcab494

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
}

// Fixed version simply returns nil
func (l *logicalQuery) Select(t iterator) NodeNavigator {
	return nil
}

Source: GitHub Commit Update

Detection Methods for CVE-2026-32287

Indicators of Compromise

  • Sudden CPU utilization spikes to 100% on servers processing XPath queries
  • Application processes becoming unresponsive while handling XPath operations
  • Log entries showing XPath queries with Boolean expressions like 1=1, true(), or similar patterns
  • Increased latency or timeouts in services that process XML/XPath data

Detection Strategies

  • Monitor CPU utilization patterns for sustained 100% usage on application servers
  • Implement request logging and alerting for XPath queries containing suspicious Boolean expressions
  • Use application performance monitoring (APM) to detect infinite loops in Go applications
  • Review dependency versions to identify vulnerable antchfx/xpath library usage

Monitoring Recommendations

  • Configure resource limits (CPU quotas, timeouts) for XPath processing operations
  • Implement query timeout mechanisms to terminate long-running XPath evaluations
  • Set up automated alerts for abnormal CPU consumption patterns
  • Monitor Go application goroutine counts for signs of stuck processing threads

How to Mitigate CVE-2026-32287

Immediate Actions Required

  • Update the antchfx/xpath library to the patched version immediately
  • Review all applications that process user-supplied XPath expressions
  • Implement input validation to reject potentially malicious XPath patterns
  • Apply resource limits to prevent single queries from exhausting system resources

Patch Information

The vulnerability has been addressed in a security patch committed to the antchfx/xpath repository. The fix modifies the Select method to return nil immediately, preventing the infinite loop condition. Organizations should update to the patched version by pulling the latest release from the repository.

For detailed patch information, refer to:

  • GitHub Commit Update
  • GitHub Issue Discussion
  • Go.dev Vulnerability Report

Workarounds

  • Implement XPath query timeouts at the application level to terminate long-running evaluations
  • Validate and sanitize XPath input to reject Boolean-only expressions before processing
  • Deploy rate limiting on endpoints that accept XPath queries
  • Use containerization with CPU limits to prevent a single process from exhausting host resources
bash
# Configuration example
# Update Go dependencies to pull the patched version
go get -u github.com/antchfx/xpath@latest

# Verify the installed version includes the security fix
go list -m github.com/antchfx/xpath

# Run vulnerability check on your Go modules
govulncheck ./...

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechN/A

  • SeverityNONE

  • CVSS ScoreN/A

  • Known ExploitedNo
  • Impact Assessment
  • ConfidentialityNone
  • IntegrityNone
  • AvailabilityNone
  • Technical References
  • GitHub Commit Update

  • GitHub Issue Discussion

  • VulnDB Issue #4526

  • Go.dev Vulnerability Report
  • Latest CVEs
  • CVE-2025-49454: TinySalt Path Traversal Vulnerability

  • CVE-2025-48261: MultiVendorX Information Disclosure Flaw

  • CVE-2025-32119: CardGate WooCommerce SQL Injection Flaw

  • CVE-2025-26879: s2Member Plugin Reflected XSS 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