CyberSecBulletin

Improper Restriction of Rendered UI Layers or Frames

CWE-1021

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

We track 54 vulnerabilities of this type. 100% are rated high or critical, and the average CVSS score is 7.8.

How this weakness is prevented

  • 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.

Latest Improper Restriction of Rendered UI Layers or Frames vulnerabilities