1. CVE archive
  2. Vulnerability types
  3. CWE-942
CWE-942 · #184 most frequent type in the archive

Permissive Cross-domain Security Policy with Untrusted Domains

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.

Part of: CWE-863 · Incorrect Authorization

95CVEs of this type in the archive
12critical (CVSS ≥ 9)
38high severity (7–8.9)
Nov 30, 2026latest published

What it is

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.

Impact on systems

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

How to prevent it

Architecture and Design · Operation · Attack Surface Reduction Define a restrictive Content Security Policy 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.

Source: MITRE CWE catalog · Official entry on the MITRE website

CWE-942 CVEs published per year

2026: year in progress, updated every hour

Show the data as a table
YearCVE
20191
20222
20237
202411
202514
202660

All CWE-942 CVEs

95 results

Dottor Marc

Is this type of vulnerability in your systems?

An archive tells you what exists; a Vulnerability Assessment tells you what is exposed on your side. Dottor Marc tests your web applications and network with automated and manual checks.