
An unsafe cross-origin link is a link that opens another site in a new tab while giving that site a handle back to your page through window.opener. With that handle, a malicious page can quietly redirect your original tab to a lookalike login screen, a trick known as reverse tabnabbing. Current browsers now treat target="_blank" as if it had rel="noopener", so the risk is smaller than it used to be. It hasn't disappeared: older browsers, scripted window.open() calls, and links that explicitly set rel="opener" still expose it.
This guide covers what changed, where the risk remains, how to test a page, and how to fix the markup at the template level.
What is reverse tabnabbing?
Reverse tabnabbing is an attack where a page opened in a new tab uses window.opener to change the location of the tab that opened it. The visitor reads the new page, switches back, and finds what looks like your site asking them to sign in again. It is actually a phishing page on another domain.
- It needs a link that opens a new browsing context and keeps the opener reference.
- The linked page must be malicious or compromised, for example an expired domain, a hacked partner site, or user-submitted links.
- It hurts trust in your brand, because the fake page appears in your tab.
Is target="_blank" without noopener still unsafe in 2026?
In current browsers, a plain target="_blank" link is much safer than it was. MDN documents that setting target="_blank" on <a>, <area>, and <form> elements now implicitly provides the same behaviour as rel="noopener". The HTML standard was updated to make this the default, and the major browser engines have shipped it.
Adding rel="noopener" is still worth doing, because the implicit protection doesn't cover every case:
Plain target="_blank" link in a current browser
Protected by default? Yes
Older browsers, and some embedded or in-app browsers that haven't updated
Protected by default? Not reliably
Links opened with JavaScript window.open()
Protected by default? No, unless the script passes noopener
Links with rel="opener" set on purpose
Protected by default? No, the opener is kept deliberately
User-generated links (comments, reviews, forum posts)
Protected by default? Depends on the browser, and the destination is unknown
Security reviews and procurement questionnaires also still flag bare target="_blank" markup. Fixing it is cheap, so explicit protection remains the normal standard.
How do you test a page for unsafe cross-origin links?
Test a page by scanning the live HTML for links that open a new tab to another domain and checking whether each one carries rel="noopener" or rel="noreferrer". Then check the templates behind the flagged links, because the same markup usually repeats across the site.
- Run the URL through the Unsafe Cross-Origin Links Test. It lists external
target="_blank"links that lacknoopenerornoreferrer. - Test the pages with the most outbound links: resource roundups, partner and supplier pages, blog posts with citations, and help pages.
- Map each flagged link to where it came from: the theme, a plugin, a CMS rich-text field, or a third-party embed.
- Search your codebase or theme for
window.open(. Those calls are not visible in a link audit and need to be checked by hand.
Where do unsafe links usually come from on small-business sites?
Unsafe links usually come from content and plugins rather than the core theme, because modern frameworks and CMS editors now add noopener automatically. The leftovers tend to sit in the same places:
- Old blog posts written before the editor added
relvalues automatically. - HTML pasted into custom fields, page-builder "code" blocks, or landing pages.
- Affiliate, sponsor, and partner blocks supplied as snippets.
- Social share buttons and review widgets from older plugins.
- Comment sections and forums where visitors can post links.
How do you fix unsafe target="_blank" links?
Fix unsafe links in the component or filter that outputs them, so every existing and future link gets the same treatment. Editing individual posts by hand works for a handful of links but won't hold up after the next content import.
- Ask whether the link needs a new tab at all. Internal links and most citations can open in the same tab.
- For external new-tab links, add
rel="noopener". Addnoreferreras well if you don't want the destination to see your page in its referrer data. Be aware thatnoreferreralso hides your traffic from partners' analytics. - Patch the source. Update the link component, the CMS output filter, or the snippet you give to editors.
- Fix scripted windows. Pass
"noopener"in the features argument ofwindow.open(), or setnewWindow.opener = null. - Treat user links separately. Add
rel="ugc nofollow noopener"to links in comments and reviews. - Re-test the same URLs after deploying to confirm the flagged links are clean.
The correct markup for an external link that opens in a new tab is:
<a href="https://example.com/" target="_blank" rel="noopener">Example</a>
Does noopener affect SEO?
noopener and noreferrer don't affect how Google crawls or ranks links. They control browser behaviour, not link equity. Google's link attributes for search are nofollow, sponsored, and ugc. The SEO case for this fix is indirect: it removes a trust and security problem that damages the brand when it's exploited.
Keep in mind that noreferrer strips the referrer header, so partners you link to will see your visits as direct traffic. If referral credit matters to a partnership, use noopener on its own.
Unsafe cross-origin links FAQ
What does rel="noopener" do?
rel="noopener" tells the browser to open the link without giving the new page access to the original page through window.opener. The new page can't redirect or script the tab that opened it. The referrer header is still sent, so the destination can see where the visit came from.
What is the difference between noopener and noreferrer?
noopener removes the window.opener reference. noreferrer removes the opener reference and also stops the browser sending the Referer header, so the destination can't see which page sent the visitor. Use noopener for security alone and add noreferrer only when you also want to hide the referring page.
Do modern browsers add noopener automatically?
Yes. Current browsers treat target="_blank" links as if they had rel="noopener", as documented by MDN and the HTML standard. Scripted windows opened with window.open(), links with rel="opener", and older or embedded browsers aren't covered in the same way, so explicit markup is still recommended.
Does adding noopener break anything?
It can break the rare feature that relies on window.opener, such as some older payment or login pop-ups that message the original page. Test those flows after the change. For normal links to other websites, adding noopener has no visible effect for visitors.
Should internal links open in a new tab?
Usually not. Opening internal links in the same tab keeps navigation predictable and works with the back button. Reserve new tabs for cases where a visitor would lose unsaved work, such as a help link inside a form.
Check the page with the most outbound links first: run it through the Unsafe Cross-Origin Links Test and trace each flagged link back to the template that printed it.
SEO Site Signals comes from PositionMySite, a North American software company in Toronto and Tampa that has been shipping web products since 2009. The same in-house team that builds our paid monitoring dashboard builds the free security and on-page checks, including the cross-origin link test in this article. They are free so small businesses can find and fix problems like this without buying an enterprise security or SEO suite.
Last updated: September 25, 2026 | Author: David Dayan | Sources: MDN, "rel=noopener"; WHATWG HTML Standard, link type "noopener"; Google Search Central, "Qualify your outbound links to Google".