XSS in Jquery
CVE-2012-6708
jQuery before 1.9.0 is vulnerable to Cross-site Scripting (XSS) attacks. The jQuery(strInput) function does not differentiate selectors from HTML in a reliable fashion. In vulnerable versions, jQuery determined whether the input was HTML by looking for the '<' character anywhere in the string, giving attackers more flexibility when attempting to construct a malicious payload. In fixed versions, jQuery only deems the input to be HTML if it explicitly starts with the '<' character, limiting exploitability only to attackers who can control the beginning of a string, which is far less common.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.1 (Medium). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
EPSS exploit prediction
EPSS 0.086, 95.2th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 14 other repositories (ARPSyndicate/cvemon, badchars/JS-Analyzer, BroDaber/kitcat, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- snyk.io/vuln/npm:jquery:20120206 (Patch, Third Party Advisory)
- bugs.jquery.com/ticket/11290 (Exploit, Issue Tracking, Vendor Advisory)
- github.com/jquery/jquery/commit/05531fc4080ae24070930d15ae0cea7ae056457d (Patch, Third Party Advisory)
- help.ecostruxureit.com/display/public/UADCE725/Security+fixes+in+StruxureWare+D… (Third Party Advisory)
- www.securityfocus.com/bid/102792 (Third Party Advisory, VDB Entry, vdb-entry)
- packetstormsecurity.com/files/153237/RetireJS-CORS-Issue-Script-Execution.html
- [drill-dev] 20191017 Dependencies used by Drill contain known vulnerabilities (mailing-list)
- [drill-dev] 20191021 [jira] [Created] (DRILL-7416) Updates required to dependencies to resolve potential security vulnerabilities (mailing-list)
- [drill-issues] 20191021 [jira] [Created] (DRILL-7416) Updates required to dependencies to resolve potential security vulnerabilities (mailing-list)
- openSUSE-SU-2020:0395 (vendor-advisory)