---
title: "CAPEC-201: Serialized Data External Linking"
url: https://radicalnotion.ai/capec/capec-201
type: capec
description: "An adversary creates a serialized data file (e.g. XML, YAML, etc...) that contains an external data reference. Because serialized data parsers may not validate documents with external references, there may be no checks on the nature of the reference in the external data. This can allow an adversary to open arbitrary files or connections, which may further lead to the adversary gaining access to information on the system that they would normally be unable to obtain."
updated: 2026-06-01
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CAPEC-201: Serialized Data External Linking

- **Abstraction:** Detailed
- **Status:** Draft
- **Typical severity:** High
- **Likelihood of attack:** High
- **CAPEC catalog version:** 3.9

## Description

An adversary creates a serialized data file (e.g. XML, YAML, etc...) that contains an external data reference. Because serialized data parsers may not validate documents with external references, there may be no checks on the nature of the reference in the external data. This can allow an adversary to open arbitrary files or connections, which may further lead to the adversary gaining access to information on the system that they would normally be unable to obtain.

## Execution flow

### Step 1: Explore

\[Survey the target\] Using a browser or an automated tool, an adversary records all instances of web services that process requests with serialized data.

- Use an automated tool to record all instances of URLs that process requests with serialized data.
- Use a browser to manually explore the website and analyze how the application processes serialized data requests.

### Step 2: Exploit

\[Craft malicious payload\] The adversary crafts malicious data message that contains references to sensitive files.

### Step 3: Exploit

\[Launch an External Linking attack\] Send the malicious crafted message containing the reference to a sensitive file to the target URL.

## Prerequisites

- The target must follow external data references without validating the validity of the reference target.

## Skills required

- **Low:** To send serialized data messages with maliciously crafted schema.

## Resources required

- None: No specialized resources are required to execute this type of attack.

## Consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Confidentiality | Read Data | - |

## Mitigations

- Configure the serialized data processor to only retrieve external entities from trusted sources.

## Example instances

The following DTD would attempt to open the /dev/tty device: \<!DOCTYPE doc \[ \<!ENTITY ent SYSTEM "file:///dev/tty"\> \]\> A malicious actor could use this crafted DTD to reveal sensitive information.

The following XML snippet would attempt to open the /etc/passwd file: \<foo xmlns:xi="http://www.w3.org/2001/XInclude"\> \<xi:include parse="text" href="file:///etc/passwd"/\>\</foo\>

## Related weaknesses (CWE)

- [CWE-829](https://radicalnotion.ai/cwe/cwe-829): Inclusion of Functionality from Untrusted Control Sphere

## Related attack patterns

| Relationship | CAPEC | Name |
| --- | --- | --- |
| Parent | [CAPEC-122](https://radicalnotion.ai/capec/capec-122) | Privilege Abuse |
| Parent | [CAPEC-278](https://radicalnotion.ai/capec/capec-278) | Web Services Protocol Manipulation |

## Frequently asked questions

### What is CAPEC-201?

An adversary creates a serialized data file (e.g. XML, YAML, etc...) that contains an external data reference. Because serialized data parsers may not validate documents with external references, there may be no checks on the nature of the reference in the external data. This can allow an adversary to open arbitrary files or connections, which may further lead to the adversary gaining access to information on the system that they would normally be unable to obtain.

### How does a Serialized Data External Linking attack work?

It typically unfolds over 3 phases. It begins with: \[Survey the target\] Using a browser or an automated tool, an adversary records all instances of web services that process requests with serialized data.

### How do you prevent CAPEC-201?

Configure the serialized data processor to only retrieve external entities from trusted sources.

### What weaknesses does CAPEC-201 target?

CAPEC-201 exploits one CWE weakness: CWE-829 (Inclusion of Functionality from Untrusted Control Sphere).

### How severe is CAPEC-201?

MITRE rates CAPEC-201 as High severity with high likelihood of attack.

Primary source: [MITRE CAPEC](https://capec.mitre.org/data/definitions/201.html)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/capec/capec-201). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
