1. CVE archive
  2. Vulnerability types
  3. CWE-643
CWE-643 · #369 most frequent type in the archive

Improper Neutralization of Data within XPath Expressions

The product uses external input to dynamically construct an XPath expression used to retrieve data from an XML database, but it does not neutralize or incorrectly neutralizes that input.

Part of: CWE-943 · Improper Neutralization of Special Elements in Data Query Logic

14CVEs of this type in the archive
2critical (CVSS ≥ 9)
3high severity (7–8.9)
Nov 3, 2026latest published

What it is

The product uses external input to dynamically construct an XPath expression used to retrieve data from an XML database, but it does not neutralize or incorrectly neutralizes that input.

Impact on systems

ScopeImpact
Access Control Bypass Protection Mechanism
An attacker can control the structure of the query, possibly causing unexpected data to be returned. This can be further used to control application flow (e.g., bypassing authentication).
Confidentiality Read Application Data
By modifying the XPath query, an attacker could read restricted XML content by choosing which information is selected from the XML database.

How to prevent it

Implementation Use parameterized XPath queries (e.g. using XQuery). This will help ensure separation between data plane and control plane.
Implementation Properly validate user input. Reject data where appropriate, filter where appropriate and escape where appropriate. Make sure input that will be used in XPath queries is safe in that context.

Source: MITRE CWE catalog · Official entry on the MITRE website

CWE-643 CVEs published per year

2026: year in progress, updated every hour

Show the data as a table
YearCVE
20221
20232
20241
20253
20267

All CWE-643 CVEs

14 results

Dottor Marc

Is this type of vulnerability in your systems?

An archive tells you what exists; a Vulnerability Assessment tells you what is exposed on your side. Dottor Marc tests your web applications and network with automated and manual checks.