GitHub Advisoryadvisory · Go
GHSA-65xw-vw82-r86x XPath: Boolean expression infinite loop leads to denial of service via CPU exhaustion
HIGH
Official page ↗
- Aliases
- CVE-2026-32287
- Ecosystem
- Go
- Packages
- github.com/antchfx/xpath
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Weaknesses
- CWE-400, CWE-835
- Reviewed
- 2026-03-29
Affected packages
• Go github.com/antchfx/xpath: < 1.3.6 → fixed in 1.3.6
Description
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()".
Related
Alias · CVE (1)
- CVE-2026-32287 Boolean XPath expressions that evaluate to true can cause an infinite loop in logicalQuery.Select, leading to 100% CPU usage. vulnerability
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-32287 advisory
- https://github.com/antchfx/xpath/issues/121 web
- https://github.com/golang/vulndb/issues/4526 web
- https://github.com/antchfx/xpath/commit/afd4762cc342af56345a3fb4002a59281fcab494 web
- https://github.com/antchfx/xpath package
- https://pkg.go.dev/vuln/GO-2026-4526 web
- https://securityinfinity.com/research/infinite-loop-dos-in-antchfx-xpath-logicalquery-select web