Property
Languagejavascript
Severitylow
CWECWE-79: Improper Neutralization of Input During Web Page Generation (‘Cross-site Scripting’)
OWASPA07:2017 - Cross-Site Scripting (XSS)
Confidence LevelLow
Impact LevelMedium
Likelihood LevelLow

Description#

Passing user-controlled data directly into jQuery methods like html(), append(), or similar DOM manipulation functions can allow malicious scripts to be injected into the page. This creates a risk of Cross-Site Scripting (XSS) vulnerabilities if the input is not properly sanitized.

Impact#

If exploited, attackers could execute arbitrary JavaScript in users’ browsers, potentially stealing session cookies, user data, or performing actions on behalf of the user. This compromises user security and trust, and may lead to data breaches or further attacks on your application.