cve.bz

CAPEC-146

XML Schema Poisoning

High severityLow likelihoodDetailed pattern

An adversary corrupts or modifies the content of XML schema information passed between a client and server for the purpose of undermining the security of the target. XML Schemas provide the structure and content definitions for XML documents. Schema poisoning is the ability to manipulate a schema either by replacing or modifying it to compromise the programs that process documents that use this schema.

On this page

Ask an AI about this attack pattern

Show the promptExplain the attack pattern CAPEC-146: XML Schema Poisoning: how it unfolds, what it needs and how to prevent and detect it in my systems. Use https://capec.mitre.org/data/definitions/146.html and https://cve.bz/cve/capec/146?via=ask-ai-copy, which lists recent CVEs with the weaknesses it exploits. Cite the sources.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this attack pattern's id and public links.

How the attack unfolds

  1. Explore

    The attacker looks for a way in.

    1. [Determine if XML schema is local or remote] Because this attack differs slightly if the target uses remote XML schemas versus local schemas, the adversary first needs to determine which of the two are used.

  2. Experiment

    They probe what they found.

    1. [Gain access to XML schema] The adversary gains access to the XML schema so that they can modify the contents.

      2 techniques
      • For a local scenario, the adversary needs access to the machine that the schema is located on and needs to gain permissions to alter the contents of the file.
      • For a remote scenario, the adversary needs to be able to sniff HTTP traffic that contains an XML schema.
  3. Exploit

    They carry out the attack.

    1. [Poison XML schema] Once the adversary gains access to the XML schema, they will alter it to achieve a desired effect. Locally, they can simply modify the file. For remote schemas, the adversary will alter the schema in transit by performing an adversary in the middle attack.

      3 techniques
      • Cause a denial of service by modifying the schema so that it does not contain required information for subsequent processing. For example, the unaltered schema may require a @name attribute in all submitted documents. If the adversary removes this attribute from the schema then documents created using the new grammar may lack this field, which may cause the processing application to enter an unexpected state or record incomplete data.
      • Manipulation of the data types described in the schema may affect the results of calculations. For example, a float field could be changed to an int field.
      • Change the encoding defined in the schema for certain fields allowing the contents to bypass filters that scan for dangerous strings. For example, the modified schema might use a URL encoding instead of ASCII, and a filter that catches a semicolon (;) might fail to detect its URL encoding (%3B).

Prerequisites

  • Some level of access to modify the target schema.

  • The schema used by the target application must be improperly secured against unauthorized modification and manipulation.

Resources required

  • Access to the schema and the knowledge and ability modify it. Ability to replace or redirect access to the modified schema.

Consequences

What a successful attack can lead to
ImpactAffectsNote
Unreliable Execution, Resource ConsumptionAvailabilityA successful schema poisoning attack can compromise the availability of the target system's service by exhausting its available resources.
Modify DataIntegrity
Read DataConfidentiality

Mitigations

  • Design: Protect the schema against unauthorized modification.

  • Implementation: For applications that use a known schema, use a local copy or a known good repository instead of the schema reference supplied in the XML document. Additionally, ensure that the proper permissions are set on local files to avoid unauthorized modification.

  • Implementation: For applications that leverage remote schemas, use the HTTPS protocol to prevent modification of traffic in transit and to avoid unauthorized modification.

Weaknesses it exploits

  • CWE-15 External Control of System or Configuration Setting
  • CWE-472 External Control of Assumed-Immutable Web Parameter

Recent CVEs with these weaknesses

  1. 6.7CVE-2026-126796

    A LibreOffice Writer document can contain its own database. When the document was opened, that database was registered in the user's settings under a name the document chose, replacing any database the user had registered under that name. …

  2. –CVE-2026-92089

    External control of Assumed-Immutable web parameter vulnerability in Apache OpenMeetings. This issue affects Apache OpenMeetings: from 5.0.1 before 9.2.0. Apache OpenMeetings Docker: from 5.1.0 before 9.2.0. Authenticated attacker wi…

  3. 6.3CVE-2026-133397

    Joomla Extension - solidres.com - Unauthenticated cross-product variant price manipulation in Solidshop extension 1.0.0-1.8.0 - The cart add and update tasks did not verify that a requested variant belongs to the product being added, allow…

  4. 8.3CVE-2026-134792

    When the proxy option isn't set, HttpClient takes the proxy from environment variables like http_proxy or HTTP_PROXY. On web servers, it ignores HTTP_PROXY, because PHP puts the Proxy request header there (the httpoxy issue). On the CLI SA…

  5. 7.8CVE-2026-130164

    Hermes Agent is an open-source autonomous AI agent built by Nous Research for running tool-using workflows across CLI, desktop, and messaging interfaces. From 0.21.6 to 0.23.1, when Bot Desktop is hosted inside a non-local terminal backend…

  6. 8.7CVE-2026-135470

    WPC Product Options for WooCommerce before 4.0.9 contains a price manipulation vulnerability that allows unauthenticated attackers to purchase products at an arbitrary price by submitting crafted wpcpo-* option data with a negative price i…

  7. 5.3CVE-2026-135287

    LiteLLM Proxy 1.62.4 before 1.84.0 contains a callback injection vulnerability that allows authenticated API key holders to register process-wide logging callbacks by supplying callbacks fields in request bodies. Attackers can name an unen…

  8. 8.1CVE-2026-131305

    In Splunk AI Assistant versions below 2.0.0, a user who does not hold the "admin" or "power" Splunk roles could submit client-controlled feature settings through the Representational State Transfer (REST) API. This could modify limited res…

The newest records naming one of them. Each weakness's page lists them all.

Part of

Examples

XML Schema Poisoning Attacks can often occur locally due to being embedded within the XML document itself or …

XML Schema Poisoning Attacks can often occur locally due to being embedded within the XML document itself or being located on the host within an improperaly protected file. In these cases, the adversary can simply edit the XML schema without the need for additional privileges. An example of the former can be seen below:

<?xml version="1.0"?> <!DOCTYPE contact [ <!ELEMENT contact (name,phone,email,address)> <!ELEMENT name (#PCDATA)> <!ELEMENT phone (#PCDATA)> <!ELEMENT email (#PCDATA)> <!ELEMENT address (#PCDATA)> ]> <note> <name>John Smith</name> <phone>555-1234</phone> <email>jsmith@email.com</email> <address>1 Example Lane</address> </note></capec:Code>

If the 'name' attribute is required in all submitted documents and this field is removed by the adversary, the application may enter an unexpected state or record incomplete data. Additionally, if this data is needed to perform additional functions, a Denial of Service (DOS) may occur.

XML Schema Poisoning Attacks can also be executed remotely if the HTTP protocol is being used to transport da…

XML Schema Poisoning Attacks can also be executed remotely if the HTTP protocol is being used to transport data. :

<?xml version="1.0"?> <!DOCTYPE contact SYSTEM "http://example.com/contact.dtd"[ <note> <name>John Smith</name> <phone>555-1234</phone> <email>jsmith@email.com</email> <address>1 Example Lane</address> </note></capec:Code>

The HTTP protocol does not encrypt the traffic it transports, so all communication occurs in plaintext. This traffic can be observed and modified by the adversary during transit to alter the XML schema before it reaches the end user. The adversary can perform a Adversary-in-the-Middle (CAPEC-94) Attack to alter the schema in the same way as the previous example and to acheive the same results.

MITRE's words, unchanged: CAPEC-146 at MITRE. CAPEC is Copyright © 2007–2026, The MITRE Corporation, used under the CAPEC terms of use: “The MITRE Corporation (MITRE) hereby grants you a non-exclusive, royalty-free license to use Common Attack Pattern Enumeration and Classification (CAPEC™) for research, development, and commercial purposes. Any copy you make for such purposes is authorized provided that you reproduce MITRE’s copyright designation and this license in any such copy.” CAPEC and the CAPEC logo are trademarks of The MITRE Corporation. Credits. All attack patterns.