CVE-2012-6708
jQuery before 1.9.0 is vulnerable to Cross-site Scripting (XSS) attacks. The jQuery(strInput) function does not differentiate selectors…
- Published
- Updated
- Reserved
- Assigned by
- mitre
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.0 | Medium6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
- EPSS (exploitation in 30 days)
- 8.6% · top 4.9% of all CVEs (2 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 6.1.
Weakness
Affected products
n/a
- affected n/a
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Mavenorg.webjars.npm:jqueryGHSA-2pqj-h3vj-pqgw (opens in a new tab)
- NuGetjQueryGHSA-2pqj-h3vj-pqgw (opens in a new tab)
- RubyGemsjquery-railsGHSA-2pqj-h3vj-pqgw (opens in a new tab)
- npmjqueryGHSA-2pqj-h3vj-pqgw (opens in a new tab)
References (11)
- https://snyk.io/vuln/npm:jquery:20120206 (opens in a new tab)x_refsource_MISCx_transferred
- https://bugs.jquery.com/ticket/11290 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/jquery/jquery/commit/05531fc4080ae24070930d15ae0cea7ae056457d (opens in a new tab)x_refsource_MISCx_transferred
- https://help.ecostruxureit.com/display/public/UADCE725/Security+fixes+in+StruxureWare+Data+Center+Expert+v7.6.0 (opens in a new tab)x_refsource_CONFIRMx_transferred
- 102792 (opens in a new tab)vdb-entryx_refsource_BIDx_transferred
- http://packetstormsecurity.com/files/153237/RetireJS-CORS-Issue-Script-Execution.html (opens in a new tab)x_refsource_MISCx_transferred
- [drill-dev] 20191017 Dependencies used by Drill contain known vulnerabilities (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [drill-dev] 20191021 [jira] [Created] (DRILL-7416) Updates required to dependencies to resolve potential security vulnerabilities (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [drill-issues] 20191021 [jira] [Created] (DRILL-7416) Updates required to dependencies to resolve potential security vulnerabilities (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- openSUSE-SU-2020:0395 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- http://packetstormsecurity.com/files/161972/Linksys-EA7500-2.0.8.194281-Cross-Site-Scripting.html (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-2pqj-h3vj-pqgw (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Record last updated .