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

Use of Web Link to Untrusted Target with window.opener Access

The web application produces links to untrusted external sites outside of its sphere of control, but it does not properly prevent the external site from modifying security-critical properties of the window.opener object, such as the location property.

Part of: CWE-266 · Incorrect Privilege Assignment

12CVEs of this type in the archive
1critical (CVSS ≥ 9)
0high severity (7–8.9)
Oct 12, 2026latest published

What it is

The web application produces links to untrusted external sites outside of its sphere of control, but it does not properly prevent the external site from modifying security-critical properties of the window.opener object, such as the location property.

Impact on systems

ScopeImpact
Confidentiality Alter Execution Logic
If an attacker can run script on the target page, then they could read or modify certain properties of the window.opener object, including the location property - even if the original and target site are not the same origin. An attacker can modify the location property to automatically redirect the user to an untrusted page that contains undesired content or malicious script code, e.g. as part of a phishing attack. Since this redirect happens in the original window/tab - which is not necessarily visible, since the browser is focusing the display on the new target page - the user might not notice any suspicious redirection.

How to prevent it

Architecture and Design Specify in the design that any linked external document must not be granted access to the location object of the calling page.
Implementation When creating a link to an external document using the <a> tag with a defined target, for example _blank or a named frame, provide the rel attribute with a value noopener noreferrer. If opening the external document in a new window via javascript, then reset the opener by setting it equal to null.
Implementation Do not use _blank targets. However, this can affect the usability of the application.

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

CWE-1022 CVEs published per year

2026: year in progress, updated every hour

Show the data as a table
YearCVE
20224
20232
20241
20253
20262

All CWE-1022 CVEs

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