Skip to content

fix: add noopener,noreferrer to _blank targets to prevent reverse tab… - #442

Merged
karishnu merged 1 commit into
mainfrom
fix/reverse-tabnabbing-noopener
Aug 14, 2026
Merged

fix: add noopener,noreferrer to _blank targets to prevent reverse tab…#442
karishnu merged 1 commit into
mainfrom
fix/reverse-tabnabbing-noopener

Conversation

@karishnu

Copy link
Copy Markdown
Collaborator

…nabbing

Opening attacker-influenced app/preview URLs in a new tab without noopener leaves a live window.opener handle to the platform tab, enabling reverse tabnabbing (CWE-1022). Add noopener,noreferrer to all window.open('_blank') calls and rel=noopener noreferrer to target=_blank anchors that were missing it.

…nabbing

Opening attacker-influenced app/preview URLs in a new tab without
noopener leaves a live window.opener handle to the platform tab,
enabling reverse tabnabbing (CWE-1022). Add noopener,noreferrer to all
window.open('_blank') calls and rel=noopener noreferrer to target=_blank
anchors that were missing it.
@karishnu
karishnu merged commit 16d7119 into main Aug 14, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant