Infinite loop in github.com/antchfx/xpath
Summary
| CVE | CVE-2026-32287 |
|---|---|
| State | PUBLISHED |
| Assigner | Go |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-03-26 20:16:12 UTC |
| Updated | 2026-04-21 15:33:09 UTC |
| 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()". |
Risk And Classification
Primary CVSS: v3.1 7.5 HIGH from ADP
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS: 0.000560000 probability, percentile 0.176940000 (date 2026-04-22)
Problem Types: CWE-835 | CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | ADP | DECLARED | 7.5 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| 3.1 | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | Secondary | 7.5 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
NoneIntegrity
NoneAvailability
HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD Known Affected Configurations (CPE 2.3)
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Github.comantchfxxpath | Github.com/antchfx/xpath | affected 1.3.6 semver | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| securityinfinity.com/research/infinite-loop-dos-in-antchfx-xpath-logicalquery-select | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | securityinfinity.com | Exploit, Third Party Advisory |
| pkg.go.dev/vuln/GO-2026-4526 | [email protected] | pkg.go.dev | Third Party Advisory |
| github.com/antchfx/xpath/issues/121 | [email protected] | github.com | Issue Tracking, Third Party Advisory |
| github.com/golang/vulndb/issues/4526 | [email protected] | github.com | Issue Tracking, Third Party Advisory |
| github.com/antchfx/xpath/commit/afd4762cc342af56345a3fb4002a59281fcab494 | [email protected] | github.com | Patch |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.