Open-source package vulnerability · Go
CVE-2026-32287: XPath: Boolean expression infinite loop leads to denial of service via CPU exhaustion
highCVSS 3.1 7.5GHSA-65xw-vw82-r86x
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()".
Published Mar 29, 2026 · Updated Mar 30, 2026
Affected packages
github.com/antchfx/xpath
- Ecosystem
- Go
- Affected
- < 1.3.6
- Fixed in
- 1.3.6
- Check
go list -m github.com/antchfx/xpath
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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()".
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-32287
- https://github.com/antchfx/xpath/issues/121
- https://github.com/golang/vulndb/issues/4526
- https://github.com/antchfx/xpath/commit/afd4762cc342af56345a3fb4002a59281fcab494
- https://pkg.go.dev/vuln/GO-2026-4526
- https://securityinfinity.com/research/infinite-loop-dos-in-antchfx-xpath-logicalquery-select
- https://github.com/advisories/GHSA-65xw-vw82-r86x
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
