rel="noopener noreferrer": What It Does and Why
Adding rel noopener noreferrer to external links that open in a new tab stops the newly opened page from accessing your original tab through window.opener. Without that protection, a malicious or compromised destination can silently redirect your background tab to a fake login screen, an attack known as reverse tabnabbing. Current major browsers already apply this protection by default, so the remaining impact is in older browsers and in-app web views.
What it is
Links that open in a new tab let the new page reach back and control your original tab.
Why it matters
A malicious linked page could redirect your original tab to a fake login page (tabnabbing). Modern browsers mitigate this, but older ones do not.
Meowdit rates this high risk.
How to tell if your site has it
- Open your browser developer tools, switch to the Elements tab (or view page source) and search for target="_blank" anchor tags.
- Inspect each external link that points to another domain and verify whether its rel attribute includes noopener.
- Check user-generated content, CMS rich-text blocks, markdown renderers and footer icon links, which frequently omit the attribute.
- Other scanners often label this finding 'Links to cross-origin destinations are unsafe' or 'Missing rel=noopener on external links'.
Fix direction
Update your shared link component, page templates or content sanitizer so every external link opening in a new tab carries the relation attribute that severs opener access. Handling it in one shared layer prevents future posts from slipping through, and a Meowdit scan shows where to check on your site.
A scan gives you the steps specific to your site, plus a fix prompt you can paste into an AI tool. See what a report looks like: View the public example report
FAQ
- What is the difference between noopener and noreferrer?
- noopener blocks the new tab from controlling window.opener while still allowing the browser to send the Referer header. noreferrer blocks opener access too, and also strips referrer information so the destination cannot see where the visitor came from. Whether you want referrer data preserved for partner analytics or affiliate tracking decides how you weigh the two.
- Do modern browsers already imply noopener on target="_blank"?
- Current major browsers treat target="_blank" as noopener by default, but older browsers and some embedded WebViews do not. Declaring the attribute explicitly guarantees consistent protection across environments and clears security audit warnings.
- Do internal links that open in a new tab need noopener as well?
- Same-origin links already share trust with your site, so they do not carry the cross-origin tabnabbing risk. Adding it on internal links is mainly a performance consideration for process isolation rather than a cross-site security requirement.
References
Related checks
Related guides
All checks · View the public example report
This page was written and checked by AI and has not been reviewed by a person, so please verify before applying; see About Meowdit. Last updated: 2026-11-22