---
id: CVE-2026-32287
aliases:
  - GHSA-65xw-vw82-r86x
  - GO-2026-4526
title: >-
  XPath: Boolean expression infinite loop leads to denial of service via CPU
  exhaustion
summary: >-
  XPath: Boolean expression infinite loop leads to denial of service via CPU
  exhaustion
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
vendor: antchfx
product: github.com/antchfx/xpath
ecosystem: go
affected:
  - github.com/antchfx/xpath < 1.3.6
patched:
  - github.com/antchfx/xpath 1.3.6
published: '2026-03-29'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:50:37.723005087Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-65xw-vw82-r86x'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-32287'
  - url: 'https://github.com/antchfx/xpath/issues/121'
  - url: 'https://github.com/golang/vulndb/issues/4526'
  - url: >-
      https://github.com/antchfx/xpath/commit/afd4762cc342af56345a3fb4002a59281fcab494
  - url: 'https://github.com/antchfx/xpath'
  - url: 'https://pkg.go.dev/vuln/GO-2026-4526'
  - url: >-
      https://securityinfinity.com/research/infinite-loop-dos-in-antchfx-xpath-logicalquery-select
tags:
  - osv
  - go
epss: 0.00519
epssPercentile: 0.43102
ingestedAt: '2026-09-12T03:13:01.757Z'
---

## Overview

Boolean expressions that evaluate to true can cause an infinite loop in logicalQuery.Select, leading to 100% CPU usage. This can be triggered by top-level selectors such as "1=1" or "true()".

## Affected packages

- `github.com/antchfx/xpath < 1.3.6`

## Remediation

Upgrade to a patched release:

- `github.com/antchfx/xpath 1.3.6`
