Common Weakness Enumeration

    CWE Definition / CWE-643

    CWE-643: Improper 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.

    Published:30 Jan 2008
    Organization:MITRE
    Modified:11 Dec 2025

    Related Weakness

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

    CWE-91: XML Injection (aka Blind XPath Injection)