1. CVE archive
  2. Vulnerability types
  3. CWE-1021
CWE-1021 · #95 most frequent type in the archive

Improper Restriction of Rendered UI Layers or Frames

The web application does not restrict or incorrectly restricts frame objects or UI layers that belong to another application or domain.

Part of: CWE-441 · Unintended Proxy or Intermediary

428CVEs of this type in the archive
8critical (CVSS ≥ 9)
100high severity (7–8.9)
Nov 21, 2026latest published

What it is

The web application does not restrict or incorrectly restricts frame objects or UI layers that belong to another application or domain.

Impact on systems

ScopeImpact
Access Control Gain Privileges or Assume Identity, Bypass Protection Mechanism, Read Application Data, Modify Application Data
An attacker can trick a user into performing actions that are masked and hidden from the user's view. The impact varies widely, depending on the functionality of the underlying application. For example, in a social media application, clickjacking could be used to trick the user into changing privacy settings.

How to prevent it

Implementation Use the frame-ancestors directive in the Content Security Policy, which is intended to define restrictions when it comes to allowing embedded content.
Implementation The use of X-Frame-Options (now partially obsolete as of September 2026) 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.

Source: MITRE CWE catalog · Official entry on the MITRE website

CWE-1021 CVEs published per year

2026: year in progress, updated every hour

Show the data as a table
YearCVE
20051
20081
20111
20131
20142
20151
20161
20177
20189
201926
202044
202165
202260
202338
202440
202553
202678

All CWE-1021 CVEs

428 results

Dottor Marc

Is this type of vulnerability in your systems?

An archive tells you what exists; a Vulnerability Assessment tells you what is exposed on your side. Dottor Marc tests your web applications and network with automated and manual checks.