Medium severity · published Jan 18, 2018
CVE-2012-6708
jQuery before 1.9.0 is vulnerable to Cross-site Scripting (XSS) attacks
6.1
CVSS
8.6%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
Low
Integrity
Low
Availability
None
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)8.6% · higher than 95% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
JQ
Jquery · Jquery
before 1.9.0 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2012-6708
CVE.org
https://www.cve.org/CVERecord?id=CVE-2012-6708
lists.opensuse.org
http://lists.opensuse.org/opensuse-security-announce/2020-03/msg00041.html
packetstormsecurity.com
http://packetstormsecurity.com/files/153237/RetireJS-CORS-Issue-Script-Execution.html
packetstormsecurity.com
http://packetstormsecurity.com/files/161972/Linksys-EA7500-2.0.8.194281-Cross-Site-Scripting.html
Third Party Advisory
http://www.securityfocus.com/bid/102792
Exploit
https://bugs.jquery.com/ticket/11290
Patch
https://github.com/jquery/jquery/commit/05531fc4080ae24070930d15ae0cea7ae056457d
More from Jquery
6.1
CVE-2020-11023
Potential XSS vulnerability in jQuery
7.5
CVE-2016-10707
jQuery 3.0.0-rc.1 is vulnerable to Denial of Service (DoS) due to removing a logic that lowercased attribute names
6.1
CVE-2020-7656
jquery prior to 1.9.0 allows Cross-site Scripting attacks via the load method
6.1
CVE-2020-11022
In jQuery starting with 1.12.0 and before 3.5.0, passing HTML from untrusted sources - even after sanitizing it - to one of jQuery's DOM manipulation methods (i.e
6.1
CVE-2018-18405
jQuery v2.2.2 allows XSS via a crafted onerror attribute of an IMG element
