Skip to content
OpenAdvisories

Weakness (CWE)

CWE-643: Improper Neutralization of Data within XPath Expressions

Base Incomplete

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.

How to prevent it (2 mitigations)
  1. Implementation

    Use parameterized XPath queries (e.g. using XQuery). This will help ensure separation between data plane and control plane.

  2. 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-643

20 results · Feed

  • Medium 6.5

    Apache HertzBeat: incomplete XPath expression validation in aliasFields

    Apache HertzBeat versions 1.7.1, 1.7.2, 1.7.3, 1.8.0, and 1.9.0 have incomplete XPath expression validation in the HTTP collector XML parsing path. An authenticated user with permission to create monitor templates can supply XPath expressions through metrics.…

  • High 8.7

    Fireware OS XPath Injection in SSH Authentication Allows Blind Extraction of Configuration Secrets

    An XPath injection vulnerability in WatchGuard Fireware OS's SSH authentication process allows a remote, unauthenticated attacker with access to the management SSH interface to extract sensitive configuration data by submitting a specially crafted request.

  • Medium 4.3

    OPNsense: XPath injection in MVC safe-delete

    OPNsense is a FreeBSD based firewall and routing platform. Prior to version 26.1.11, the safe-delete path reached through ApiMutableModelControllerBase::delBase() interpolates an unvalidated safe-delete token from the request URL into an XPath expression over…

  • High 7.1
    CVE-2026-53582 Public exploit

    OPNsense: XPATH Injection can disclose any secret in config.xml

    OPNsense is a FreeBSD based firewall and routing platform. Prior to version 26.1.10, the Trust module stores attacker-controlled certificate authority and certificate refid values and interpolates them into XPath expressions in src/opnsense/mvc/app/models/OPN…

  • Medium 6.5

    Multiple security vulnerabilities are addressed with IBM Cloud Pak for Business Automation iFixes for August 2026.

    IBM Cloud Pak for Business Automation 26.0.0 through 26.0.0 Interim Fix 001, 25.0.0 through 25.0.0 Interim Fix 005, 24.0.1 through 24.0.1 Interim Fix 008, and 24.0.0 through 24.0.0 Interim Fix 009 is vulnerable to an XPath injection vulnerability, which could…

  • Critical 9.1

    XML::Sig versions before 0.71 for Perl allow XPath injection in ID lookup

    XML::Sig versions before 0.71 for Perl allow XPath injection in ID lookup. verify() and _get_signed_xml() in lib/XML/Sig.pm build XPath expressions by concatenating the SignedInfo/Reference/@URI value read from the document being verified. The value is neithe…

  • Critical 9.9

    Plesk contains an XPath injection vulnerability in the APS Application Catalog search functionality, where user-supplie…

  • Medium 6.5

    BIG-IP Configuration utility vulnerability

    A vulnerability exists in the undisclosed pages in the Configuration utility that may allow a low-privileged authenticated attacker to access to undisclosed sensitive information.  Note: Software versions which have reached End of Technical Support (EoTS) are…

  • High 8.8

    Apache HertzBeat: Uncontrolled Resource Consumption via Crafted XPath Expressions

    Improper Neutralization of Data within XPath Expressions ('XPath Injection') vulnerability in Apache HertzBeat. This issue affects Apache HertzBeat: from 1.7.1 before 1.8.0. Users are recommended to upgrade to version 1.8.0, which fixes the issue.

  • Medium 5.4
    CVE-2025-11844 Public exploit

    XPath Injection in Hugging Face Smolagents search_item_ctrl_f Function

    Hugging Face Smolagents version 1.20.0 contains an XPath injection vulnerability in the search_item_ctrl_f function located in src/smolagents/vision_web_browser.py. The function constructs an XPath query by directly concatenating user-supplied input into the …

  • Medium 4.9

    Cisco Secure Firepower Management Center Software XPATH Injection Vulnerability

    A vulnerability in the web-based management interface of Cisco Secure Firewall Management Center (FMC) Software could allow an authenticated, remote attacker to retrieve sensitive information from an affected device. This vulnerability is due to insufficient …

  • Medium 4.3

    IBM Aspera Console XPath injection

    IBM Aspera Console 3.4.0 through 3.4.4 is vulnerable to an XPath injection vulnerability, which could allow an authenticated attacker to exfiltrate sensitive application data and/or determine the structure of the XML document.

  • Medium 6.8

    SSRF in composiohq/composio

    A Server-Side Request Forgery (SSRF) vulnerability exists in composiohq/composio version v0.4.4. This vulnerability allows an attacker to read the contents of any file in the system by exploiting the BROWSERTOOL_GOTO_PAGE and BROWSERTOOL_GET_PAGE_DETAILS acti…

  • High 8.8

    Junos OS: J-Web: An unauthenticated, network-based attacker can perform XPATH injection attack against a device.

    An Improper Neutralization of Data within XPath Expressions ('XPath Injection') vulnerability in J-Web shipped with Juniper Networks Junos OS allows an unauthenticated, network-based attacker to execute remote commands on the target device.  While an administ…

  • Medium 4.3

    Netentsec NS-ASG Application Security Gateway naccheck.php xpath injection

    A vulnerability, which was classified as problematic, was found in Netentsec NS-ASG Application Security Gateway 6.3. Affected is an unknown function of the file /nac/naccheck.php. The manipulation of the argument username leads to improper neutralization of …

  • Medium 4.3

    Netentsec NS-ASG Application Security Gateway resetpwd.php xpath injection

    A vulnerability classified as problematic has been found in Netentsec NS-ASG Application Security Gateway 6.3. This affects an unknown part of the file /vpnweb/resetpwd/resetpwd.php. The manipulation of the argument UserId leads to improper neutralization of …

  • Medium 6.5

    Microsoft Dynamics 365 (On-Premises) Information Disclosure Vulnerability

    Microsoft Dynamics 365 (On-Premises) Information Disclosure Vulnerability

  • Medium 6.5

    Microsoft Dynamics 365 (On-Premises) Information Disclosure Vulnerability

    Microsoft Dynamics 365 (On-Premises) Information Disclosure Vulnerability

  • Medium 6.5

    Microsoft Dynamics 365 (On-Premises) Information Disclosure Vulnerability

    Microsoft Dynamics 365 (On-Premises) Information Disclosure Vulnerability

  • High 7.5

    B. Braun SpaceCom, Battery Pack SP with Wi-Fi, and Data module compactplus

    A XPath injection vulnerability in the B. Braun Melsungen AG SpaceCom Version L81/U61 and earlier, and the Data module compactplus Versions A10 and A11 allows unauthenticated remote attackers to access sensitive information and escalate privileges.