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.
[object Object]
Common consequences
- Confidentiality,Integrity,Availability,Access Control→Execute Unauthorized Code or Commands,Bypass Protection Mechanism,Read Application Data,Varies by ContextWith 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 priva
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-628958.82026-09-08CVE-2026-129622026-09-08CVE-2026-844522026-09-02CVE-2026-536499.62026-09-02CVE-2026-822918.12026-08-28CVE-2026-822878.12026-08-28CVE-2025-611639.82026-08-26CVE-2026-536566.32026-08-21CVE-2026-634078.22026-08-19CVE-2026-685176.52026-08-17CVE-2026-748816.52026-08-17CVE-2026-186762026-08-12CVE-2026-464099.62026-08-07CVE-2026-706047.42026-08-05CVE-2026-653107.52026-07-31CVE-2026-660056.32026-07-24CVE-2026-159667.52026-07-23CVE-2026-217614.22026-07-17CVE-2024-235784.22026-07-17CVE-2026-623877.12026-07-17