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#

Using user-controlled input directly as a jQuery selector (e.g., $(’…’)) can allow malicious users to inject code into your page. This makes your application vulnerable to cross-site scripting (XSS) attacks.

Impact#

If exploited, attackers could execute arbitrary JavaScript in the user’s browser, leading to stolen session cookies, account compromise, or manipulation of page content. This can result in data breaches, loss of user trust, and potential regulatory violations.