Skip to content

Commit f85fdc3

Browse files
committed
fix(security): reverse tabnabbing risk from target="_blank" lin
Multiple templates open external sites in new tabs with `target="_blank"` but without `rel="noopener noreferrer"`. Opened pages can access `window.opener` and potentially navigate the originating extension page. Affected files: App.tsx Signed-off-by: tuanaiseo <221258316+tuanaiseo@users.noreply.github.com>
1 parent 8a56f73 commit f85fdc3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • templates/react/entrypoints/popup

templates/react/entrypoints/popup/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ function App() {
99
return (
1010
<>
1111
<div>
12-
<a href="https://wxt.dev" target="_blank">
12+
<a href="https://wxt.dev" target="_blank" rel="noopener noreferrer">
1313
<img src={wxtLogo} className="logo" alt="WXT logo" />
1414
</a>
15-
<a href="https://react.dev" target="_blank">
15+
<a href="https://react.dev" target="_blank" rel="noopener noreferrer">
1616
<img src={reactLogo} className="logo react" alt="React logo" />
1717
</a>
1818
</div>

0 commit comments

Comments
 (0)