CWE-942: Permissive Cross-domain Security Policy with Untrusted Domains, published in 2022
Filter
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 the weakness is: CWE-942 at MITRE. OWASP Top 10: A02:2025 Security Misconfiguration. All weaknesses
Ask an AI about CWE-942
Show the prompt
Explain CWE-942: Permissive Cross-domain Security Policy with Untrusted Domains and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/942.html and https://cve.bz/cve/cwe/942?via=ask-ai-copy for recent CVEs with this weakness. Cite the sources.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this weakness's id and public links.
By year: all 2026 2025 2024 2023 2022 2021
- 9.8CVE-2022-26969monospace directusEPSS 1.0%
In Directus before 9.7.0, the default settings of CORS_ORIGIN and CORS_ENABLED are true.
- 9.8CVE-2022-31736mozillaEPSS 1.1%
A malicious website could have learned the size of a cross-origin resource that supported Range requests. This vulnerability affects Thunderbird < 91.10, Firefox < 101, and Firefox ESR < 91.10.
- 9.8CVE-2021-27786hcltech onetest serverEPSS 0.6%
Cross-origin resource sharing (CORS) enables browsers to perform cross domain requests in a controlled manner. This request has an Origin header that identifies the domain that is making the initial request and defines the protocol between…