Home / Core Health / Add rel="noopener" to links that open in a new tab
Content & Files · Scan Check Guide

Add rel="noopener" to links that open in a new tab

20 min Impact: medium Effort: low ✓ Scan-verified — no manual checkbox

Any link on your site that opens in a new tab (target="_blank") without rel="noopener" gives that new tab partial JavaScript access back to your original page — a malicious destination site can use this to silently redirect your original tab to a phishing page while the visitor is looking at the new one ("tab-nabbing").

A link with target="_blank" but no rel="noopener" gives the page it opens partial control over your original tab via window.opener — a real technique used to redirect your original tab to a phishing page while the visitor looks at the new one.

The full picture

The rel="noopener" attribute on links opening in a new tab addresses a genuine, specific vulnerability sometimes called tabnabbing, where a page you link to and that opens in a new tab can, without this protection, gain a degree of access to and control over your original page through a JavaScript reference — a technical relationship browsers establish by default for target="_blank" links.

The specific risk this creates is genuinely exploitable — a malicious destination page could use this default access to your original page to redirect it to a phishing page mimicking your original site, potentially deceiving a visitor who glances back at their original tab and, seeing what appears to be your legitimate site (now actually a phishing page), enters credentials or other sensitive information.

The noopener attribute explicitly severs this default connection, ensuring the newly opened page has no ability to access or manipulate your original tab regardless of what that destination page's content or intentions might be — this protects your visitors even when linking to genuinely untrusted or unknown external destinations.

This represents a genuinely simple, low-effort fix — adding this single attribute to your relevant links closes off this specific vulnerability with no functional downside, making this exactly the kind of straightforward security improvement worth applying comprehensively across every instance of new-tab-opening links throughout your site.

How to fix it

  1. 1
    Find every target="_blank" link on your site
    Search your templates/theme for target="_blank" — this often includes social share links, external partner links, and footer links.
  2. 2
    Add rel="noopener" to each
    <a href="..." target="_blank" rel="noopener"> — this single attribute closes the vulnerability with zero visible change to the link's behavior.
  3. 3
    Add noreferrer too if you don't want to leak referrer data
    rel="noopener noreferrer" also prevents the destination site from seeing which page on your site linked to them.

Common mistakes

How you'll know it's done

Every target="_blank" link on your site includes rel="noopener".

H.I.V.E. checks this automatically

Fix it, then re-scan — the check confirms itself. No manual checkbox, the scan is the truth.

Run this check in H.I.V.E. →