Go Vulnerability Database
GO-2026-4526
Infinite loop in github.com/antchfx/xpath
Details
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
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | github.com/antchfx/xpath | All versions before 1.3.6 (fixed in 1.3.6) |