CWE•Variant•Incomplete•20 recent CVEs
CWE-942Permissive Cross-domain Security Policy with Untrusted Domains
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.
Common consequences
- Confidentiality,Integrity,Availability,Access Control→Execute Unauthorized Code or Commands,Bypass Protection Mechanism,Read Application Data,Varies by ContextIf 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
Potential mitigations
- Architecture and Design,OperationDefine a restrictive Content Security Policy [REF-1486] or cross-domain policy file.
- Architecture and Design,OperationAvoid 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,OperationFor 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.
Related CWEs
Recent CVEs classified under this CWE
CVE-2026-659572026-11-11CVE-2026-1071558.82026-11-06CVE-2026-1218212026-11-06CVE-2026-628639.62026-10-30CVE-2026-1192855.92026-10-29CVE-2026-1107372026-10-27CVE-2026-1167488.82026-10-26CVE-2026-1159173.42026-10-26CVE-2026-1078582026-10-23CVE-2026-33033.72026-10-19CVE-2026-853134.32026-10-19CVE-2026-841766.52026-10-19CVE-2026-1119226.32026-10-17CVE-2026-1083722026-10-16CVE-2026-558425.42026-10-15CVE-2026-662474.32026-10-01CVE-2026-660708.82026-09-23CVE-2026-908822026-09-22CVE-2026-565953.12026-09-18CVE-2026-890587.42026-09-18