Cyber Resilience

CWE · MITRE source

CWE-643Improper Neutralization of Data within XPath Expressions ('XPath Injection')

Abstraction: Base · CVEs in our corpus: 14

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.

Prevent
Stop it (NIST 800-53 / CSF Protect)
  • PR.PS-06
  • SI-10 Information Input Validation
Detect
Catch it (CSF Detect / Respond)

Harden
Shrink the surface (DISA STIG)

Validate
Prove the fix (OWASP ASVS)
  • V1.2.4
  • V1.2.7
  • V2.2.1
  • V4.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 7.09.90.00692026-05-29
CVE-2026-243436.78.80.00722026-02-10
CVE-2026-93906.79.10.00282026-08-03
CVE-2024-39565 6.68.80.00522024-07-10
CVE-2020-25162 6.27.50.01852022-04-14
CVE-2023-36429 5.56.50.02042023-10-10
CVE-2023-36433 5.56.50.01922023-10-10
CVE-2023-24922 5.46.50.01462023-03-14
CVE-2026-40699 5.06.50.00282026-05-13
CVE-2025-11844 4.35.40.00262025-10-22
CVE-2025-20218 4.04.90.00452025-08-14
CVE-2024-2645 3.84.30.00732024-03-19
CVE-2024-2648 3.84.30.00732024-03-19
CVE-2022-43840 3.64.30.00292025-04-14