CWE · MITRE source
CWE-1022Use 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.
When a user clicks a link to an external site ("target"), the target="_blank" attribute causes the target site's contents to be opened in a new window or tab, which runs in the same process as the original page. The window.opener object records information about the original page that offered the link. 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 a malicious site, 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.
Last updated: 20 August 2026 13:14 UTC
OWASP Top 10 for Web (2025)
This weakness contributes to A06:2025 Insecure Design.
Control responseHuman-reviewed
Answering this weakness across the control lifecycle, from our framework cross-walks.
PR.PS-06
—
—
V3.4.8
NIST 800-53 r5 controls that address this weakness (0)AI-assisted
| Control | Title | Family | Why it addresses this CWE |
|---|---|---|---|
| No NIST controls proposed yet. | |||
Top CVEs of this weakness type, ranked by Risk Priority
| CVE | Risk | CVSS | EPSS | Published |
|---|---|---|---|---|
CVE-2022-1583 UPD | 5.4 | 6.5 | 0.0132 | 2022-05-30 |
CVE-2020-36624 UPD | 5.0 | 6.3 | 0.0057 | 2022-12-22 |
CVE-2021-33697 UPD | 4.7 | 6.1 | 0.0058 | 2021-09-15 |
CVE-2024-39727 UPD | 4.6 | 6.1 | 0.0035 | 2024-12-25 |
CVE-2022-2600 UPD | 4.5 | 5.4 | 0.0060 | 2022-08-22 |
CVE-2022-4927 UPD | 4.5 | 5.5 | 0.0049 | 2023-03-05 |
CVE-2025-33014 UPD | 4.1 | 5.4 | 0.0021 | 2025-07-18 |
CVE-2021-39112 UPD | 3.9 | 4.8 | 0.0073 | 2021-08-25 |
CVE-2018-25058 UPD | 3.6 | 4.2 | 0.0052 | 2022-12-29 |
CVE-2025-59842 UPD | 3.6 | 4.3 | 0.0022 | 2025-09-26 |
CVE-2018-25089 UPD | 3.2 | 3.5 | 0.0050 | 2023-08-28 |
CVE-2026-71555 | 3.2 | 4.1 | 0.0017 | 2026-08-06 |
CVE-2025-42941 UPD | 2.9 | 3.5 | 0.0020 | 2025-08-12 |