XML injection occurs when an application accepts attacker-controlled XML without safely validating or handling it. Crafted XML can change how a request is interpreted, alter data, or affect application behavior. The impact depends on the parser, the operation, and the permissions available to the application.
In cyber security, XML injection can expose data or enable unauthorized actions in services that process XML, such as web APIs and geospatial platforms. An attack may submit manipulated XML to an exposed operation, including a Web Feature Service (WFS) endpoint. Defenses include strict input validation, secure parser settings, least-privilege access, and timely software updates. Restricting unnecessary services and monitoring requests can also help reduce risk.


