CWE · MITRE source
CWE-643Improper Neutralization of Data within XPath Expressions ('XPath Injection')
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. This allows an attacker to control the structure of the query.
The net effect is that the attacker will have control over the information selected from the XML database and may use that ability to control application flow, modify logic, retrieve unauthorized data, or bypass important checks (e.g. authentication).
Last updated: 20 August 2026 13:14 UTC
OWASP Top 10 for Web (2025)
This weakness contributes to A05:2025 Injection.
Control responseHuman-reviewed
Answering this weakness across the control lifecycle, from our framework cross-walks.
Detect
Catch it (CSF Detect / Respond)
—
Harden
Shrink the surface (DISA STIG)
—
Validate
Prove the fix (OWASP ASVS)
V1.2.4V1.2.7V2.2.1V4.3.1
NIST 800-53 r5 controls that address this weakness (0)AI-assisted
| Control | Title | Family | Why it addresses this CWE |
|---|---|---|---|
| No NIST controls proposed yet. | |||
Top CVEs of this weakness type, ranked by Risk Priority
| CVE | Risk | CVSS | EPSS | Published |
|---|---|---|---|---|
CVE-2026-44962 UPD | 7.0 | 9.9 | 0.0069 | 2026-05-29 |
CVE-2026-24343 | 6.7 | 8.8 | 0.0072 | 2026-02-10 |
CVE-2026-9390 | 6.7 | 9.1 | 0.0028 | 2026-08-03 |
CVE-2024-39565 UPD | 6.6 | 8.8 | 0.0052 | 2024-07-10 |
CVE-2020-25162 UPD | 6.2 | 7.5 | 0.0185 | 2022-04-14 |
CVE-2023-36429 UPD | 5.5 | 6.5 | 0.0204 | 2023-10-10 |
CVE-2023-36433 UPD | 5.5 | 6.5 | 0.0192 | 2023-10-10 |
CVE-2023-24922 UPD | 5.4 | 6.5 | 0.0146 | 2023-03-14 |
CVE-2026-40699 UPD | 5.0 | 6.5 | 0.0028 | 2026-05-13 |
CVE-2025-11844 UPD | 4.3 | 5.4 | 0.0026 | 2025-10-22 |
CVE-2025-20218 UPD | 4.0 | 4.9 | 0.0045 | 2025-08-14 |
CVE-2024-2645 UPD | 3.8 | 4.3 | 0.0073 | 2024-03-19 |
CVE-2024-2648 UPD | 3.8 | 4.3 | 0.0073 | 2024-03-19 |
CVE-2022-43840 UPD | 3.6 | 4.3 | 0.0029 | 2025-04-14 |