CWE-1021: Improper Restriction of Rendered UI Layers or Frames
412 CVEs have CWE-1021 as their primary weakness. 0 of them are in the CISA KEV catalog. The highest EPSS score among them is 25.108%.
The web application does not restrict or incorrectly restricts frame objects or UI layers that belong to another application or domain.
Child of CWE-441: Unintended Proxy or Intermediary
OWASP Top 10: A04:2021 Insecure Design · A06:2025 Insecure Design
Mitigations
- Implementation: Use the frame-ancestors directive in the Content Security Policy, which is intended to define restrictions when it comes to allowing embedded content [REF-1544].
- Implementation: The use of X-Frame-Options (now partially obsolete as of September 2026 [REF-1545]) allows developers of web content to restrict the usage of their application within the form of overlays, frames, or iFrames. The developer can indicate from which domains can frame the content. The concept of X-Frame-Options is well documented, but implementation of this protection mechanism is in development to cover gaps; often, there is a need for allowing frames from multiple domains.
- Implementation: Use a frame-breaker script in each page that should not be framed. This is very helpful for legacy browsers that do not support the X-Frame-Options security feature previously mentioned (which is now partially obsolete).
- Implementation: In addition to frames or iframes as previously mentioned, the web application is expected to place restrictions on whether it is allowed to be rendered within objects, embed, or applet elements.
Observed examples
- CVE-2017-7440: E-mail preview feature in a desktop application allows clickjacking attacks via a crafted e-mail message
- CVE-2017-5697: Hardware/firmware product has insufficient clickjacking protection in its web user interface
- CVE-2017-4015: Clickjacking in data-loss prevention product via HTTP response header.
- CVE-2016-2496: Tapjacking in permission dialog for mobile OS allows access of private storage using a partially-overlapping window.
- CVE-2015-1241: Tapjacking in web browser related to page navigation and touch/gesture events.
- CVE-2017-0492: System UI in mobile OS allows a malicious application to create a UI overlay of the entire screen to gain privileges.
Top released CVEs
KEV first, then the highest EPSS score, the highest CVSS score and the newest.
| CVE | Published | Severity | CVSS | EPSS | Description |
|---|---|---|---|---|---|
| CVE-2026-131085 | 2026-11-17 | not scored | not scored | Clickjacking in PermissionElement in Google Chrome prior to 158.0.8127.36 allowed a remote attacker leveraging social engineering to spoof UI elements via a… |
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cwe_lookup/CWE-1021'curl 'https://api.contrastcyber.com/cve_search?cwe_id=CWE-1021'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).