CWE-942: Permissive Cross-domain Security Policy with Untrusted Domains, published in 2021
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
- 8.8CVE-2021-34435eclipse theiaEPSS 0.6%
In Eclipse Theia 0.3.9 to 1.8.1, the "mini-browser" extension allows a user to preview HTML files in an iframe inside the IDE. But with the way it is made it is possible for a previewed HTML file to trigger an RCE. This exploit only happen…