Will It Vibe logoWill It Vibe?
WEBSEC-018Low severity-4 points

target="_blank" without rel="noopener"

Part of Security, which counts for 30% of the overall score. When this check fires it deducts 4 points from that category, once per scan, no matter how many places it turns up.

What it detects

A link opens in a new tab with target="_blank" but no rel="noopener", letting the destination reach back via window.opener (reverse tabnabbing).

Why it matters

A link with target="_blank" but no rel="noopener" gives the newly opened page access to window.opener, which it can use to redirect your original tab to a phishing page while the user is away (reverse tabnabbing). Modern browsers set noopener by default for target=_blank, so this is low risk on current browsers but still worth fixing for older ones and for clarity.

How to fix it

Add rel="noopener" (or rel="noopener noreferrer" when you also want to strip the referrer) to every link that opens in a new tab. For links to external sites this should be the default. If you open tabs with window.open, pass "noopener" in the features argument.

The paid report includes a ready-to-paste prompt for your AI coding agent for every check it finds, pointed at the exact findings from your scan. See pricing

Does your repo trip this check?

Paste a GitHub URL or drop a project folder. Scans run in your browser and take seconds.

Scan your repo

Related Security checks