CWEweakness
CWE-91 XML Injection
- Alternate terms
- Blind XPath Injection
- Abstraction
- Base
- Structure
- Simple
- Status
- Draft
- Languages
- Not Language-Specific
- CWE version
- 5.0
Description
The product does not properly neutralize special elements that are used in XML, allowing attackers to modify the syntax, content, or commands of the XML before it is processed by an end system.
Extended description
Within XML, special elements could include reserved words or characters such as "<", ">", """, and "&", which could then be used to add new data or modify XML syntax.
Common consequences
• Confidentiality, Integrity, Availability: Execute Unauthorized Code or Commands, Read Application Data, Modify Application Data
Potential mitigations
• [Implementation] Assume all input is malicious. Use an "accept known good" input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does.
When performing input validation, consider all potentially relevant properties, including length, type of input, the full range of acceptable values, missing or extra inputs, syntax, consistency across related fields, and conformance to business rules. As an example of business rule logic, "boat" may be syntactically valid because it only contains alphanumeric characters, but it is not valid if the input is only expected to contain colors such as "red" or "blue."
Do not rely exclusively on looking for malicious or malformed inputs. This is likely to miss at least one undesirable input, especially if the code's environment changes. This can give attackers enough room to bypass the intended validation. However, denylists can be useful for detecting potential attacks or determining which inputs are so malformed that they should be rejected outright.
Detection methods
• Automated Static Analysis: Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)
Related
Attack pattern · CAPEC (2)
Child of · CWE (1)
- CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component weakness
Referenced by CAPEC · weakness (2)
Referenced by CVE · weakness (150)
- CVE-2026-53582 OPNsense is a FreeBSD based firewall and routing platform. vulnerability
- CVE-2026-102037 An XML Injection vulnerability in the Unified Threat Management daemon (utmd) of Juniper Networks Junos OS on SRX Series devices allows an… vulnerability
- CVE-2026-110084 Adobe Experience Manager is affected by an XML Injection (aka Blind XPath Injection) vulnerability that could result in a Security feature… vulnerability
- CVE-2026-102116 -A weakness could have allowed an authenticated Kiteworks Email Protection Gateway administrator to write a file outside its intended… vulnerability
- CVE-2026-103044 XML injection (aka blind XPath injection) vulnerability in The Wikimedia Foundation Mediawiki - EasyTimeline extension allows XML Injection. vulnerability
- CVE-2026-76979 ZohoCorp ManageEngine OpManager and Firewall Analyzer versions 12.8.709 and below were vulnerable to an XML Injection vulnerability in the… vulnerability
- CVE-2026-65124 NVIDIA Infrastructure Controller for Linux contains a vulnerability where an attacker could cause an XML injection. vulnerability
- CVE-2026-89247 WWBN AVideo at commit c3edcc274c389816d434acadac07ee78eaf330c1 and earlier contains an XML injection vulnerability in… vulnerability
- CVE-2026-2310 IBM webMethods Integration Server 11.1 IBM webMethods Integration is vulnerable to an XML external entity injection (XXE) attack when… vulnerability
- CVE-2026-83605 xmldom is a pure JavaScript W3C standard-based (XML DOM Level 2 Core) DOMParser and XMLSerializer module. vulnerability
- CVE-2026-83607 xmldom is a pure JavaScript W3C standard-based (XML DOM Level 2 Core) DOMParser and XMLSerializer module. vulnerability
- CVE-2026-83608 xmldom is a pure JavaScript W3C standard-based (XML DOM Level 2 Core) DOMParser and XMLSerializer module. vulnerability
- CVE-2026-83609 xmldom is a pure JavaScript W3C standard-based (XML DOM Level 2 Core) DOMParser and XMLSerializer module. vulnerability
- CVE-2026-83616 xmldom is a pure JavaScript W3C standard-based (XML DOM Level 2 Core) DOMParser and XMLSerializer module. vulnerability
- CVE-2026-83617 xmldom is a pure JavaScript W3C standard-based (XML DOM Level 2 Core) DOMParser and XMLSerializer module. vulnerability
- CVE-2026-83618 xmldom is a pure JavaScript W3C standard-based (XML DOM Level 2 Core) DOMParser and XMLSerializer module. vulnerability
- CVE-2026-47080 XML Injection vulnerability in joshnuss xml_builder (XmlBuilder module) allows Content Spoofing, XML Injection. vulnerability
- CVE-2026-48590 XML Injection vulnerability in joshnuss xml_builder (XmlBuilder module) allows Content Spoofing, XML Injection. vulnerability
- CVE-2026-24329 A flaw was found in wildfly-core. vulnerability
- CVE-2026-59728 Astro is a web framework for content-driven websites. vulnerability
- CVE-2026-15037 Improper output neutralization (XML injection) in QDom comment, CDATA, and processing-instruction serialization in Qt XML from 4.0.0… vulnerability
- CVE-2026-55789 Logto is the modern, open-source auth infrastructure for SaaS and AI apps. vulnerability
- CVE-2026-53723 Guzzle Services provides an implementation of the Guzzle Command library that uses Guzzle service descriptions to describe web services,… vulnerability
- CVE-2026-46490 samlify is a Node.js library for SAML single sign-on. vulnerability
- CVE-2026-11169 Inappropriate implementation in XML in Google Chrome prior to 149.0.7827.53 allowed a remote attacker to inject arbitrary scripts or HTML… vulnerability
- CVE-2026-47273 pam_usb provides hardware authentication for Linux using ordinary removable media. vulnerability
- CVE-2026-40165 authentik is an open-source identity provider. vulnerability
- CVE-2026-44664 fast-xml-builder builds XML from JSON. vulnerability
- CVE-2026-44665 fast-xml-builder builds XML from JSON. vulnerability
- CVE-2026-41650 fast-xml-parser allows users to process XML from JS object without C/C++ based libraries or callbacks. vulnerability
Referenced by CWE · child of (2)
Referenced by CWE · has member (1)
- CWE-1340 CISQ Data Protection Measures view