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 (94.9th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 95th percentile — 94.9% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.086 · newest: 0.086 · change: 0.000
Affected products
Weakness classification (CWE)
Public proof-of-concept exploits
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 (VDB Entry, Third Party Advisory, vdb-entry)
- packetstormsecurity.com/files/153237/RetireJS-CORS-Issue-Script-Execution.html
- lists.apache.org/thread.html/b0656d359c7d40ec9f39c8cc61bca66802ef9a2a12ee199f5b… (mailing-list)
- lists.apache.org/thread.html/519eb0fd45642dcecd9ff74cb3e71c20a4753f7d82e2f07864… (mailing-list)
- lists.apache.org/thread.html/f9bc3e55f4e28d1dcd1a69aae6d53e609a758e34d2869b4d79… (mailing-list)
- lists.opensuse.org/opensuse-security-announce/2020-03/msg00041.html (vendor-advisory)
Frequently asked questions
- What is CVE-2012-6708?
- CVE-2012-6708 is a medium-severity vulnerability in Jquery, classified under Cross-site Scripting. CVSS score: 6.1/10. Published 2018-01-18.
- How severe is CVE-2012-6708?
- Medium severity. CVSS v3 base score is 6.1 out of 10.
- Is CVE-2012-6708 known to be exploited?
- 14 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.