# CWE-1021: Improper Restriction of Rendered UI Layers or Frames

> As of 2026-10-10, CWE-1021 (Improper Restriction of Rendered UI Layers or Frames) underlies 4 CVEs tracked by Threadlinqs, none of them in the CISA Known Exploited Vulnerabilities catalog, and is cited by 70 tracked threats.

**Last updated:** 2026-10-10

## What is CWE-1021?

The web application does not restrict or incorrectly restricts frame objects or UI layers that belong to another application or domain, which can lead to user confusion about which interface the user is interacting with.

A web application is expected to place restrictions on whether it is allowed to be rendered within frames, iframes, objects, embed or applet elements. Without the restrictions, users can be tricked into interacting with the application when they were not intending to.

CWE-1021 is a base-level weakness in MITRE’s Common Weakness Enumeration. Applicable platforms: Language: Not Language-Specific; Technology: Not Technology-Specific; Technology: Web Based.

_Source: [MITRE CWE](https://cwe.mitre.org/data/definitions/1021.html) (CWE-1021 definition, reproduced verbatim). Counts and linkage below are Threadlinqs data._

## Consequences

- **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 trik the user into changing privacy settings.

_Source: MITRE CWE, common consequences._

## How CWE-1021 is exploited in the wild

Threadlinqs maps 4 CVEs to CWE-1021, published between 2026-06-16 and 2026-09-09. None of them is in the CISA KEV catalog yet. By CVSS v3 severity the set splits into 1 high, 3 medium. The highest EPSS score in the set is 0.3% (CVE-2026-60370), the modelled probability of exploitation in the next 30 days. 70 tracked threats reference CWE-1021 directly or through a CVE it covers; the most recent is “Fake ChatGPT/Gemini/Claude Ad-Tool Lure Sites Use Browser-in-the-Browser Phishing to Steal Ad Account Credentials and MFA Codes” (2026-10-06). Affected products concentrate in Mozilla (2), Google (1), Oracle Corporation (1).

## Vulnerabilities (CVEs)

All 4 CVEs mapped to CWE-1021, CISA KEV first, then by CVSS score.

- [CVE-2026-60370](https://intel.threadlinqs.com/cve/CVE-2026-60370) — CVSS 7.5 high · EPSS 0.3% · published 2026-07-22
- [CVE-2026-12322](https://intel.threadlinqs.com/cve/CVE-2026-12322) — CVSS 5.4 medium · EPSS 0.2% · published 2026-06-16
- [CVE-2026-12323](https://intel.threadlinqs.com/cve/CVE-2026-12323) — CVSS 5.4 medium · EPSS 0.1% · published 2026-06-16
- [CVE-2026-87486](https://intel.threadlinqs.com/cve/CVE-2026-87486) — CVSS 4 medium · EPSS 0.1% · published 2026-09-09

## Affected vendors

- [Mozilla](https://intel.threadlinqs.com/vendors/mozilla) — 2 CVEs
- [Google](https://intel.threadlinqs.com/vendors/google) — 1 CVE
- **Oracle Corporation** — 1 CVE

## Threat activity

70 tracked threats cite CWE-1021; the 25 most recent are listed.

- [Fake ChatGPT/Gemini/Claude Ad-Tool Lure Sites Use Browser-in-the-Browser Phishing to Steal Ad Account Credentials and MFA Codes](https://intel.threadlinqs.com/threat/TL-2026-2977) — HIGH · 2026-10-06
- [Multiple Vulnerabilities in Microsoft Edge prior to 154.0.4258.53 (HK GovCERT A26-10-03)](https://intel.threadlinqs.com/threat/TL-2026-2838) — CRITICAL · 2026-10-02
- [Fake Claude Max Giveaway Phishing Campaign Uses Browser-in-the-Browser to Steal Google Credentials](https://intel.threadlinqs.com/threat/TL-2026-2627) — MEDIUM · 2026-09-23
- [Click2Shell: WordPress Theme-Preview CSRF/Selector-Injection Chain to Forced Theme Install](https://intel.threadlinqs.com/threat/TL-2026-2597) — CRITICAL · 2026-09-21
- [CSS Bomb Attacks: CSS-Based Trust-Boundary Bypass Leaks Webmail Passwords and Tokens (Outlook, Gmail, Yahoo, AOL, Fastmail, Proton Mail)](https://intel.threadlinqs.com/threat/TL-2026-1968) — HIGH · 2026-08-10
- [OWASP GenAI LLM Top 10 2026 — Community-Driven Security Guidance for AI Applications](https://intel.threadlinqs.com/threat/TL-2026-1913) — MEDIUM · 2026-08-06
- [InsureOTP Kit: Real-Time OTP Interception Phishing Campaign Targeting Insurance Providers (CTM360)](https://intel.threadlinqs.com/threat/TL-2026-1679) — HIGH · 2026-07-25
- [ChatGPT Enters Top 10 Most-Impersonated Brands as Check Point's Q2 2026 Brand Phishing Report Shows Microsoft, LinkedIn, Google, Apple, Amazon Driving Over Half of All Impersonation Attempts](https://intel.threadlinqs.com/threat/TL-2026-1665) — MEDIUM · 2026-07-24
- [AWS CLI Login Phishing: Abusing `aws login --remote` Cross-Device Authentication to Steal Console/CLI Sessions](https://intel.threadlinqs.com/threat/TL-2026-1646) — HIGH · 2026-07-23
- [Fake Claude Desktop App Promoted via Bing Ads Delivers SectopRAT (ArechClient2) Malware](https://intel.threadlinqs.com/threat/TL-2026-1662) — HIGH · 2026-07-23
- [German-US-Indonesian Law Enforcement Dismantle Kratos (aka SneakyLog / Sneaky 2FA) Phishing-as-a-Service Kit Targeting Microsoft 365 Sessions and MFA](https://intel.threadlinqs.com/threat/TL-2026-1612) — HIGH · 2026-07-22
- ["BH Alert" Fake Bahrain Civil Defense App Deploys Four-Stage OctagonPanel Android Surveillance Platform](https://intel.threadlinqs.com/threat/TL-2026-1636) — HIGH · 2026-07-22
- [ASEC June 2026 Financial Sector Threat Roundup: Phishing-to-Infostealer Chains and Ransomware Dark Web Sales (LAPSUS$, MORPHEUS, Qilin)](https://intel.threadlinqs.com/threat/TL-2026-1597) — MEDIUM · 2026-07-21
- [MetaChat Brand Impersonation Phishing Campaign Targets AI API Keys and Credentials via EdgeOne Pages](https://intel.threadlinqs.com/threat/TL-2026-1522) — HIGH · 2026-07-19
- [UAC-0145 (Sandworm/APT44, GRU) Uses ClickFix Fake-CAPTCHA Lures and EtherHiding to Deploy Multi-Stage GHETTOVIBE/SCOUTCURL/FLUIDLEECH/FREAKYPOLL/COWARDDUCK Toolset Against Ukraine](https://intel.threadlinqs.com/threat/TL-2026-1527) — HIGH · 2026-07-19
- [ChatGPT Plus Billing Phishing Campaign Spoofs Stripe Checkout to Harvest Payment Card Data](https://intel.threadlinqs.com/threat/TL-2026-1534) — MEDIUM · 2026-07-19
- [ClickFix, CrashFix, InstallFix, FileFix & GhostClaw: Growing Family of Copy-and-Paste Social Engineering Attacks](https://intel.threadlinqs.com/threat/TL-2026-1551) — HIGH · 2026-07-19
- [ClickLock Stealer: macOS ClickFix Infostealer Uses 210ms Process-Kill Loops and Fake Authentication Dialogs to Coerce Credentials](https://intel.threadlinqs.com/threat/TL-2026-1440) — HIGH · 2026-07-17
- [MacSync Stealer: 'ClaudeFix' Malvertising Campaign Abuses Shared Claude Chat Links to Deploy macOS Infostealer](https://intel.threadlinqs.com/threat/TL-2026-1384) — HIGH · 2026-07-15
- [Operation Fake KickOff: Recruiter-Impersonation AitM/BitB Toolkit Abuses Salesforce, SendGrid, Zoho and Render to Harvest Google Workspace Credentials and Bypass MFA](https://intel.threadlinqs.com/threat/TL-2026-1388) — HIGH · 2026-07-15
- [148 Malicious npm Packages ('Lucide Proxy') Disguise as School Wi-Fi Bypass / Tutoring Proxies to Hijack Browsers into a DDoS Botnet](https://intel.threadlinqs.com/threat/TL-2026-1296) — HIGH · 2026-07-14
- [StegoAd Campaign: 119 Malicious Edge Extensions Hid Malware in Images, Fonts, and Config Files, Up to 2.6M Installs](https://intel.threadlinqs.com/threat/TL-2026-1221) — HIGH · 2026-07-11
- [UNC1151 (Ghostwriter/FrostyNeighbor) Real-Time WebSocket MFA-Bypass Credential-Phishing Campaign Targets Belarusian Opposition Politician Yury Hubarevich](https://intel.threadlinqs.com/threat/TL-2026-1223) — HIGH · 2026-07-11
- [HalluSquatting: AI Coding Assistant Hallucinations Weaponized to Deliver Botnet Malware via Fake Package/Tool/Skill Names](https://intel.threadlinqs.com/threat/TL-2026-1164) — MEDIUM · 2026-07-10
- [HTML Phishing Attachment Uses "Comment Stuffing" to Evade AI-Based Detection (SharePoint/Teams Credential Harvesting via Formspark)](https://intel.threadlinqs.com/threat/TL-2026-1168) — MEDIUM · 2026-07-10

## Mitigations

- **Implementation**: The use of X-Frame-Options 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. There is a need for allowing frames from multiple domains.
- **Implementation**: A developer can use a "frame-breaker" script in each page that should not be framed. This is very helpful for legacy browsers that do not support X-Frame-Options security feature previously mentioned. It is also important to note that this tactic has been circumvented or bypassed. Improper usage of frames can persist in the web application through nested frames. The "frame-breaking" script does not intuitively account for multiple nested frames that can be presented to the user.
- **Implementation**: This defense-in-depth technique can be used to prevent the improper usage of frames in web applications. It prioritizes the valid sources of data to be loaded into the application through the usage of declarative policies. Based on which implementation of Content Security Policy is in use, the developer should use the "frame-ancestors" directive or the "frame-src" directive to mitigate this weakness. Both directives allow for the placement of restrictions when it comes to allowing embedded content.

_Source: MITRE CWE, potential mitigations._

## Detection methods (MITRE CWE)

- **Automated Static Analysis** (effectiveness: High): Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)

_Source: MITRE CWE, detection methods. Threadlinqs detection rules for the threats above are Blue tier and higher._

## Related weaknesses

- [CWE-441 Confused Deputy](https://intel.threadlinqs.com/cwe/CWE-441)
- [CWE-610](https://cwe.mitre.org/data/definitions/610.html)
- [CWE-451 User Interface (UI) Misrepresentation of Critical Information](https://intel.threadlinqs.com/cwe/CWE-451)

Canonical: https://intel.threadlinqs.com/cwe/CWE-1021
Source definition: https://cwe.mitre.org/data/definitions/1021.html
Detection rules and IOCs for threats exploiting CWE-1021 via the Threadlinqs MCP server (Purple tier): https://intel.threadlinqs.com/mcp
