---
title: "Discussion on \"The Security Vulnerabilities of The Target=\"_Blank\" Attribute\" | Hashnode"
description: "Discussion on \"The Security Vulnerabilities of The Target=\"_Blank\" Attribute\". The HTML hyperlink tag allows you to create an element that can be clicked on to reference another document or section on a web page. Hyperlinks are defined with the HTML <a> tag like so:\n<a href=\"/about\">About Page\"></a>\n\nHTML Target Attribute\nWhile..."
url: "https://hashnode.com/posts/the-security-vulnerabilities-of-the-target-blank-attribute/5eba36154a6b9627679b43f1"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [The Security Vulnerabilities of The Target="\_Blank" Attribute](https://blog.bolajiayodeji.com/the-security-vulnerabilities-of-the-target-blank-attribute?utm_source=hashnode&utm_medium=feed)

The HTML hyperlink tag allows you to create an element that can be clicked on to reference another document or section on a web page. Hyperlinks are defined with the HTML <a> tag like so: <a href="/about">About Page"></a> HTML Target Attribute While...

May 12, 2020 · 3 min read · blog.bolajiayodeji.com  
Updated Aug 22, 2023  
Read the article

-   [#html5](https://hashnode.com/tag/html5)
-   [#a11y](https://hashnode.com/tag/a11y)
-   [#accessibility](https://hashnode.com/tag/accessibility)
-   [#security](https://hashnode.com/tag/security)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[Bolaji Ayodeji](https://hashnode.com/@bolajiayodeji)

@bolajiayodeji · Nigeria

  
[View profile](https://hashnode.com/@bolajiayodeji)

Software Engineer, Teacher, and Developer Advocate.

undefined or mostly null.

## Responses 11

Markdown supported · ⌘↵ to post

[尹兆良](https://hashnode.com/@yinset)

[Nov 24, 2023](https://hashnode.com/posts/the-security-vulnerabilities-of-the-target-blank-attribute/5eba36154a6b9627679b43f1/comment/65605124395bc29545533682)

NICE work！

[Favourite Jome](https://hashnode.com/@Favourite)

[May 15, 2021](https://hashnode.com/posts/the-security-vulnerabilities-of-the-target-blank-attribute/5eba36154a6b9627679b43f1/comment/60a009c5b66a0b15ebfc8365)

Thanks for sharing, I've always wondered why React keeps yelling at me to include that attribute.

[Ayodele Samuel Adebayo](https://hashnode.com/@unclebigbay)

[May 15, 2021](https://hashnode.com/posts/the-security-vulnerabilities-of-the-target-blank-attribute/5eba36154a6b9627679b43f1/comment/609fe0eba46b027fced546da)

thanks so so much for sharing this, I have something to make reference to.

[Raghavan alias Saravanan Muthu](https://hashnode.com/@itsraghz)

[Feb 13, 2021](https://hashnode.com/posts/the-security-vulnerabilities-of-the-target-blank-attribute/5eba36154a6b9627679b43f1/comment/60277629e522c1626f371e67)

That is truly incredible. Thank you for sharing the knowledge Balaji. I had been blindly using this target='\_blank' for many years, without really giving a thought about the technicalities and the possible vulnerabilities if any.

It is a master piece ;)

[Bolaji Ayodeji](https://hashnode.com/@bolajiayodeji)

[Feb 13, 2021](https://hashnode.com/posts/the-security-vulnerabilities-of-the-target-blank-attribute/5eba36154a6b9627679b43f1/comment/60277629e522c1626f371e67#reply-6027aca84f6b4462941e05a1)

Thank you for reading, I'm glad this was helpful.

[Peter Thaleikis](https://hashnode.com/@spekulatius)

[Sep 1, 2020](https://hashnode.com/posts/the-security-vulnerabilities-of-the-target-blank-attribute/5eba36154a6b9627679b43f1/comment/5f4e1986b524881a2be3e799)

Interesting!

[Agboola Sola](https://hashnode.com/@Solexy79)

[Aug 14, 2020](https://hashnode.com/posts/the-security-vulnerabilities-of-the-target-blank-attribute/5eba36154a6b9627679b43f1/comment/5f3600c91017f7317167b005)

Valuable post, was able to gain a lot from your post

[Bolaji Ayodeji](https://hashnode.com/@bolajiayodeji)

[Aug 14, 2020](https://hashnode.com/posts/the-security-vulnerabilities-of-the-target-blank-attribute/5eba36154a6b9627679b43f1/comment/5f3600c91017f7317167b005#reply-5f3610fe1017f7317167b079)

Glad I could help, thanks for reading.

[Chigbogu Orji](https://hashnode.com/@chigboguorji)

[Jun 20, 2020](https://hashnode.com/posts/the-security-vulnerabilities-of-the-target-blank-attribute/5eba36154a6b9627679b43f1/comment/5eee385e9fcce7a549acedde)

Now I fully understand the warning message `reactjs` displays in my console; that using `target="blank"` without `rel="noopenner noreferrer"` is discouraged. Thanks [Bolaji Ayodeji](https://hashnode.com/@bolajiayodeji) for this insightful article.

[Bolaji Ayodeji](https://hashnode.com/@bolajiayodeji)

[Jun 20, 2020](https://hashnode.com/posts/the-security-vulnerabilities-of-the-target-blank-attribute/5eba36154a6b9627679b43f1/comment/5eee385e9fcce7a549acedde#reply-5eee43aef4262384494c05bc)

Glad it helped you :)

[Uchenna Emmanuel](https://hashnode.com/@Eunit)

[May 30, 2020](https://hashnode.com/posts/the-security-vulnerabilities-of-the-target-blank-attribute/5eba36154a6b9627679b43f1/comment/5ed20b4d123fdcb70b9358f1)

Wow! Thanks for this valuable piece.

[Ebenezer Oladutemu](https://hashnode.com/@eben)

[May 16, 2020](https://hashnode.com/posts/the-security-vulnerabilities-of-the-target-blank-attribute/5eba36154a6b9627679b43f1/comment/5ebf94176bace2452f98b6b6)

Wow! Never knew this until now and I make use of the attribute a lot. Thanks for this chief!

[opara prosper](https://hashnode.com/@opara_prosper)

[May 15, 2020](https://hashnode.com/posts/the-security-vulnerabilities-of-the-target-blank-attribute/5eba36154a6b9627679b43f1/comment/5ebe0fd2d48ffc3e79694dc9)

Thanks for sharing!

I just pushed a bug fix to one of my repos 😄

[Bolaji Ayodeji](https://hashnode.com/@bolajiayodeji)

[May 15, 2020](https://hashnode.com/posts/the-security-vulnerabilities-of-the-target-blank-attribute/5eba36154a6b9627679b43f1/comment/5ebe0fd2d48ffc3e79694dc9#reply-5ebe230cacf8911d7951f1af)

Ahh, glad I could help.

[Ebenezer Oladutemu](https://hashnode.com/@eben)

[May 16, 2020](https://hashnode.com/posts/the-security-vulnerabilities-of-the-target-blank-attribute/5eba36154a6b9627679b43f1/comment/5ebe0fd2d48ffc3e79694dc9#reply-5ebf93f1a4db0c222f221e27)

😂😂. Nice one!

[Francisco Quintero](https://hashnode.com/@cesc1989)

[May 12, 2020](https://hashnode.com/posts/the-security-vulnerabilities-of-the-target-blank-attribute/5eba36154a6b9627679b43f1/comment/5ebad5654a6b9627679b51f6)

Why is this something that isn't fixed by browsers or the standard(not sure if it's ECMA)?

I mean, there should be a lot of people unaware of this vulnerability. I didn't know about it until like a couple of months ago. If browsers fix this, we shouldn't need to worry about adding another attribute.

[Bolaji Ayodeji](https://hashnode.com/@bolajiayodeji)

[May 12, 2020](https://hashnode.com/posts/the-security-vulnerabilities-of-the-target-blank-attribute/5eba36154a6b9627679b43f1/comment/5ebad5654a6b9627679b51f6#reply-5ebad9674a6b9627679b52da)

I agree with you.

I think browsers are working to get this fixed. Chrome has [site isolation](https://www.chromium.org/developers/design-documents/site-isolation) already which uses sandboxed renderer processes as a security boundary between web sites, so each site can run in isolated processes. This makes it harder for untrusted websites to initiate phishing attacks on your users. But since not all browsers have implemented this fully on all versions of their software and users might need to either enable this feature, the extra attributes are the best and reliable solution for now.

## Useful Reads

-   [developers.google.com/web/updates/2018/07/site-is…](https://developers.google.com/web/updates/2018/07/site-isolation)
-   [support.google.com/chrome/answer/7623121](https://support.google.com/chrome/answer/7623121?hl=en)
-   [ghacks.net/2019/08/11/firefox-70-site-isolation-t…](https://www.ghacks.net/2019/08/11/firefox-70-site-isolation-testing-begins-officially/)

[Francisco Quintero](https://hashnode.com/@cesc1989)

[May 12, 2020](https://hashnode.com/posts/the-security-vulnerabilities-of-the-target-blank-attribute/5eba36154a6b9627679b43f1/comment/5ebad5654a6b9627679b51f6#reply-5ebb0661b8066beb618b27bf)

I see [Bolaji Ayodeji](https://hashnode.com/@bolajiayodeji)

Good to know they're doing something, well. At least Chrome

[Bolaji Ayodeji](https://hashnode.com/@bolajiayodeji)

[May 12, 2020](https://hashnode.com/posts/the-security-vulnerabilities-of-the-target-blank-attribute/5eba36154a6b9627679b43f1/comment/5ebad5654a6b9627679b51f6#reply-5ebb09a2b8066beb618b27ca)

Yes [Francisco Quintero](https://hashnode.com/@cesc1989). Other browsers are following suit.
