Command Palette

Search for a command to run...

Back to skills
skill № 52706

Reverse Tabnapping

Detects anchor tags with target="_blank" without rel="noopener noreferrer", allowing opened pages to manipulate the opener.

FreeNo executable scripts
zakirkunby zakirkun★ 40 GitHub stars

Install Reverse Tabnapping in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

About this skill

Reverse Tabnapping

Overview

When an <a> tag uses target="_blank" without rel="noopener noreferrer", the opened page gets a reference to the opener window via window.opener. A malicious opened page can redirect the original tab to a phishing page (window.opener.location = 'https://phishing.com').

Remediation

Always add rel="noopener noreferrer" to links with target="_blank":

Vulnerable:

<a href="https://external.com" target="_blank">Visit</a>

Safe:

<a href="https://external.com" target="_blank" rel="noopener noreferrer">Visit</a>

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

  • patterns.yaml

FAQ

What does the Reverse Tabnapping skill do?

Detects anchor tags with target="_blank" without rel="noopener noreferrer", allowing opened pages to manipulate the opener.

How do I install the Reverse Tabnapping skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the Reverse Tabnapping skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare Reverse Tabnapping with