---
title: "CWE-942: Permissive Cross-domain Security Policy with Untrusted Domains"
url: https://radicalnotion.ai/cwe/cwe-942
type: cwe
description: "The product uses a web-client protection mechanism such as a Content Security Policy (CSP) or cross-domain policy file, but the policy includes untrusted domains with which the web client is allowed to communicate."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-942: Permissive Cross-domain Security Policy with Untrusted Domains

- **Abstraction:** Variant
- **Structure:** Simple
- **Status:** Incomplete
- **CVEs with this as primary weakness:** 123
- **Of those, in CISA KEV:** 0
- **New in 2026:** 70
- **CWE catalog version:** 4.21

## Description

The product uses a web-client protection mechanism such as a Content Security Policy (CSP) or cross-domain policy file, but the policy includes untrusted domains with which the web client is allowed to communicate.

## Background

In HTTP/HTTPS, policies such as the Same Origin Policy prevent web clients from loading resources from (or making requests to) domains that did not match the web site's own domain, e.g., Javascript or other code hosted on third-party servers. These policies are strictly enforced by browsers and other products. However, these restrictions can be reduced using mechanisms that specify other domains that are allowed to be contacted from the original site, such as Content Security Policy (CSP) or cross-domain policy files (e.g., "crossdomain.xml" in Adobe Flash or Reader, "clientaccesspolicy.xml" in Silverlight, etc.). These mechanisms define a list of domains from which a client is allowed to make cross-domain requests. When making a cross-domain request, the client will first look for the policy file on the target server. If it is found, and the domain hosting the application is explicitly allowed to make requests, the request is made.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Implementation | - |
| Architecture and Design | COMMISSION: This weakness refers to an incorrect design related to an architectural security tactic. |

## Applicable platforms

**Technologies:** Web Based (Undetermined), Web Server (Undetermined)

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Confidentiality, Integrity, Availability, Access Control | Execute Unauthorized Code or Commands, Bypass Protection Mechanism, Read Application Data, Varies by Context | If a cross-domain policy file includes domains that should not be trusted, such as when using wildcards under a high-level domain, then the application could be attacked by these untrusted domains. In many cases, the attack can be launched without the victim even being aware of it. With an overly permissive policy file, an attacker may be able to bypass the web browser's same-origin policy and conduct many of the same attacks seen in Cross-Site Scripting (CWE-79). An attacker can exploit the weakness to transfer private information from the victim's machine to the attacker, manipulate or steal cookies that may include session information, create malicious requests to a web site on behalf of the victim, or execute malicious code on the end user systems. Other damaging attacks include the disclosure of end user files, installation of Trojan horse programs, redirecting the user to some other page or site, running ActiveX controls (under Microsoft Internet Explorer) from sites that a user perceives as trustworthy, and modifying presentation of content. |

## Potential mitigations

### Architecture and Design, Operation (Attack Surface Reduction)

Define a restrictive Content Security Policy \[REF-1486\] or cross-domain policy file.

### Architecture and Design, Operation (Attack Surface Reduction)

Avoid using wildcards in the CSP / cross-domain policy file. Any domain matching the wildcard expression will be implicitly trusted, and can perform two-way interaction with the target server.

### Architecture and Design, Operation (Environment Hardening)

For Flash, modify crossdomain.xml to use meta-policy options such as 'master-only' or 'none' to reduce the possibility of an attacker planting extraneous cross-domain policy files on a server.

## 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.)

Effectiveness: High

## Demonstrative examples

### Example 1

These cross-domain policy files mean to allow Flash and Silverlight applications hosted on other domains to access its data:

Bad code:

```xml
<cross-domain-policy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://www.adobe.com/xml/schemas/PolicyFile.xsd">
<allow-access-from domain="*.example.com"/>
<allow-access-from domain="*"/>
</cross-domain-policy>
```

Bad code:

```xml
<?xml version="1.0" encoding="utf-8"?>
<access-policy>
<cross-domain-access>
<policy>
<allow-from http-request-headers="SOAPAction">
<domain uri="*"/>
</allow-from>
<grant-to>
<resource path="/" include-subpaths="true"/>
</grant-to>
</policy>
</cross-domain-access>
</access-policy>
```

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2012-2292 | Product has a Silverlight cross-domain policy that does not restrict access to another application, which allows remote attackers to bypass the Same Origin Policy. |
| CVE-2014-2049 | The default Flash Cross Domain policies in a product allow remote attackers to access user files. |
| CVE-2007-6243 | Chain: Adobe Flash Player does not sufficiently restrict the interpretation and usage of cross-domain policy files, which makes it easier for remote attackers to conduct cross-domain and cross-site scripting (XSS) attacks. |
| CVE-2008-4822 | Chain: Adobe Flash Player and earlier does not properly interpret policy files, which allows remote attackers to bypass a non-root domain policy. |
| CVE-2010-3636 | Chain: Adobe Flash Player does not properly handle unspecified encodings during the parsing of a cross-domain policy file, which allows remote web servers to bypass intended access restrictions via unknown vectors. |

## Real CVEs with this weakness (sample of 12 of 123)

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2025-61163 | Cohere North AI: Cohere North AI: Information disclosure via improper Origin header validation | critical | 9.8 | - | No | 2026-08-26 |
| CVE-2026-15966 | Improper CORS handling in MOVEit Transfer | critical | 9.8 | - | No | 2026-07-23 |
| CVE-2025-27909 | IBM Concert Software cross-origin resource sharing | critical | 9.8 | - | No | 2025-08-18 |
| CVE-2024-37131 | - | critical | 9.8 | - | No | 2024-06-13 |
| CVE-2023-50940 | IBM PowerSC cross-resource origin sharing | critical | 9.8 | - | No | 2024-02-02 |
| CVE-2022-26969 | Insecure default value for CORS configuration | critical | 9.8 | - | No | 2022-12-26 |
| CVE-2022-31736 | Mozilla: Cross-Origin resource's length leaked | critical | 9.8 | - | No | 2022-12-22 |
| CVE-2021-27786 | HCL OneTest Server is vulnerable to Cross Origin Resource Sharing: Arbitrary Origin Trusted | critical | 9.8 | - | No | 2022-06-07 |
| CVE-2026-34449 | SiYuan: Cross-Origin RCE via Permissive CORS Policy and JavaScript Snippet Injection | critical | 9.7 | - | No | 2026-03-31 |
| CVE-2026-62863 | MoLing: unauthenticated SSE and wildcard CORS expose tool sessions | critical | 9.6 | - | No | 2026-10-30 |
| CVE-2020-36851 | Rob--W cors-anywhere Misconfigured CORS Proxy Allows SSRF | critical | 9.5 | - | No | 2025-09-25 |
| CVE-2026-9739 | MCP Toolbox for Databases vulnerable to DNS rebinding attacks | critical | 9.4 | - | No | 2026-05-27 |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-183](https://radicalnotion.ai/cwe/cwe-183) | Permissive List of Allowed Inputs |
| Parent | [CWE-863](https://radicalnotion.ai/cwe/cwe-863) | Incorrect Authorization |
| Parent | [CWE-923](https://radicalnotion.ai/cwe/cwe-923) | Improper Restriction of Communication Channel to Intended Endpoints |
| Can precede | [CWE-668](https://radicalnotion.ai/cwe/cwe-668) | Exposure of Resource to Wrong Sphere |

## Frequently asked questions

### What is CWE-942?

The product uses a web-client protection mechanism such as a Content Security Policy (CSP) or cross-domain policy file, but the policy includes untrusted domains with which the web client is allowed to communicate.

### What CVEs are caused by CWE-942?

123 recorded CVEs are attributed to CWE-942, including CVE-2025-61163, CVE-2026-15966 and CVE-2025-27909.

### How do you prevent CWE-942?

Define a restrictive Content Security Policy or cross-domain policy file.

### How is CWE-942 detected?

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.)

### What are the consequences of CWE-942?

Exploiting CWE-942 can lead to: Execute Unauthorized Code or Commands, Bypass Protection Mechanism, Read Application Data, Varies by Context.

### Is CWE-942 actively exploited?

123 recorded CVEs are caused by CWE-942; none are currently in CISA's KEV catalog of actively exploited flaws.

Primary source: [MITRE CWE](https://cwe.mitre.org/data/definitions/942.html)

---

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