---
title: "Discussion on \"Security measures you miss out when you are using native <img /> tag in Next.js\" | Hashnode"
description: "Discussion on \"Security measures you miss out when you are using native <img /> tag in Next.js\". This is a short rundown on all the security measures and optimizations that you might miss out on if you go with the native html <img /> tag instead of <Image /> component from Next.js.\nThe usual suspects: Cross-Site Scripting (XSS attacks) and Denia..."
url: "https://hashnode.com/posts/security-measures-you-miss-out-when-you-are-using-native-img-tag-in-nextjs/67f22cdcb59257343ce2521a"
---

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

Discussion

# [Security measures you miss out when you are using native <img /> tag in Next.js](https://shreyasr.hashnode.dev/security-measures-you-miss-out-when-you-are-using-native-img-tag-in-nextjs?utm_source=hashnode&utm_medium=feed)

This is a short rundown on all the security measures and optimizations that you might miss out on if you go with the native html <img /> tag instead of <Image /> component from Next.js. The usual suspects: Cross-Site Scripting (XSS attacks) and Denia...

Apr 6, 2025 · 4 min read · shreyasr.hashnode.dev  
Read the article

-   [#nextjs](https://hashnode.com/tag/nextjs)
-   [#image-processing](https://hashnode.com/tag/image-processing)
-   [#nextimage](https://hashnode.com/tag/nextimage)
-   [#security](https://hashnode.com/tag/security)

## Written by

[Shreyas](https://hashnode.com/@shreyasr)

@shreyasr

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

Software Developer | migraine fighter | tea enthusiast

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
