#252·html5shiv

Unsanitized User Input in Dynamic HTML Insertion (XSS)

Author: qadirvCreated Dec 3, 2024Updated Dec 3, 2024

This was found as a potential XSS issue.

Description Unsanitized user input in dynamic HTML insertion can lead to Cross-Site Scripting (XSS) attacks. This vulnerability arises when user-provided data is directly inserted into the DOM without proper sanitization, potentially allowing attackers to execute malicious scripts.

Remediations Use an HTML sanitization library to clean user input before inserting it into the HTML. This step helps prevent XSS attacks by removing or neutralizing any potentially harmful scripts.

Reference : OWASP XSS explained image