CVE-2026-32287

Infinite loop in github.com/antchfx/xpath

Published Mar 26, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
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()".

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-65xw-vw82-r86x XPath: Boolean expression infinite loop leads to denial of service via CPU exhaustion
History
Type Values Removed Values Added
Weaknesses CWE-835
CPEs cpe:2.3:a:antchfx:xpath:*:*:*:*:*:go:*:*
Type Values Removed Values Added
Weaknesses CWE-770
Type Values Removed Values Added
References
Metrics cvssV3_1

{'score': 6.2, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Type Values Removed Values Added
Weaknesses CWE-606
References
Metrics threat_severity

None

cvssV3_1

{'score': 6.2, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-770
Type Values Removed Values Added
Weaknesses CWE-400
CWE-770
Type Values Removed Values Added
Weaknesses CWE-400
CWE-770
Type Values Removed Values Added
First Time appeared Antchfx
Antchfx xpath
Vendors & Products Antchfx
Antchfx xpath
Type Values Removed Values Added
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()".
Title Infinite loop in github.com/antchfx/xpath
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Go
Published
Updated
Mar 30, 2026, 2:55 PM
Reserved
Mar 11, 2026, 4:38 PM
Status
Analyzed
Published
Mar 26, 2026, 8:16 PM
Modified
Jun 17, 2026, 10:35 AM
Severity
Moderate
Public date
Mar 26, 2026, 7:40 PM