Vulnerability · Published Mar 26, 2026 · Assigned by Go
CVE-2026-32287Infinite loop in github.com/antchfx/xpath
High 7.5
In plain English
A high-severity security flaw in github.com/antchfx/xpath from github.com/antchfx/xpath. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 46% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.5%top 54.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
Official description
Boolean XPath 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 & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | golang-github-antchfx-xpath | no fix listed | DEBIAN-CVE-2026-32287 |
| Debian:13 | golang-github-antchfx-xpath | no fix listed | DEBIAN-CVE-2026-32287 |
| Debian:14 | golang-github-antchfx-xpath | 1.3.6-1 | DEBIAN-CVE-2026-32287 |
| Go | github.com/antchfx/xpath | 1.3.6 | GHSA-65xw-vw82-r86x |
| Go | github.com/antchfx/xpath | 1.3.6 | GO-2026-4526 |
| Ubuntu:22.04:LTS | golang-github-antchfx-xpath | no fix listed | UBUNTU-CVE-2026-32287 |
| Ubuntu:24.04:LTS | golang-github-antchfx-xpath | no fix listed | UBUNTU-CVE-2026-32287 |
| Ubuntu:25.10 | golang-github-antchfx-xpath | no fix listed | UBUNTU-CVE-2026-32287 |
| Ubuntu:26.04:LTS | golang-github-antchfx-xpath | no fix listed | UBUNTU-CVE-2026-32287 |
| Ubuntu:26.10 | golang-github-antchfx-xpath | no fix listed | UBUNTU-CVE-2026-32287 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| github.com/antchfx/xpath | github.com/antchfx/xpath | 0 – before 1.3.6 |
References
- https://github.com/antchfx/xpath/issues/121
- https://github.com/antchfx/xpath/commit/afd4762cc342af56345a3fb4002a59281fcab494
- https://github.com/golang/vulndb/issues/4526
- https://pkg.go.dev/vuln/GO-2026-4526
- https://securityinfinity.com/research/infinite-loop-dos-in-antchfx-xpath-logicalquery-select exploit