Home / Jquery / Jquery / CVE-2012-6708
CVE-2012-6708: is it exploited, and which versions of Jquery are affected and fixed?
CVE-2012-6708 is a cross-site scripting (XSS) vulnerability in Jquery. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 06:38 UTC). Affected: jquery before 1.9.0, org.webjars.npm:jquery before 1.9.0, jQuery before 1.9.0 and 1 more (GitHub advisory GHSA-2pqj-h3vj-pqgw). Fixed in 1.9.0 and 2.2.0 (GitHub advisory GHSA-2pqj-h3vj-pqgw). Severity: Medium (6.1, CVSS 3.0, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 06:38 UTC, CVE record November 19, 2026, 07:20 UTC and NVD November 19, 2026, 08:35 UTC.
What is 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.
From the CVE record by mitre, last updated August 6, 2024, 21:36 UTC.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| npm | jquery | < 1.9.0 | 1.9.0 | GHSA-2pqj-h3vj-pqgw |
| Maven | org.webjars.npm:jquery | < 1.9.0 | 1.9.0 | GHSA-2pqj-h3vj-pqgw |
| NuGet | jQuery | < 1.9.0 | 1.9.0 | GHSA-2pqj-h3vj-pqgw |
| RubyGems | jquery-rails | < 2.2.0 | 2.2.0 | GHSA-2pqj-h3vj-pqgw |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated June 26, 2023. Summary: Cross-Site Scripting in jquery.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| jquery | jquery | before 1.9.0 | application |
NVD analysis (status Modified), last modified June 16, 2026, 23:48 UTC.
How severe is CVE-2012-6708?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 6.1 | CVSS 3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N | NVD |
| Medium 4.3 | CVSS 2.0 | AV:N/AC:M/Au:N/C:N/I:P/A:N | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2012-6708 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 8.63% probability of exploitation activity in the next 30 days, percentile 95.2 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-79 Improper Neutralization of Input During Web Page Generation
- CWE-64 Windows Shortcut Following (.LNK)
Where are the vendor advisories and references?
- https://snyk.io/vuln/npm:jquery:20120206 x_refsource_MISC
- https://bugs.jquery.com/ticket/11290 x_refsource_MISC
- https://github.com/jquery/jquery/commit/05531fc4080ae24070930d15ae0cea7ae056457d x_refsource_MISC
- https://help.ecostruxureit.com/display/public/UADCE725/Security+fixes+in+StruxureWare+Data+Center+Expert+v7.6.0 x_refsource_CONFIRM
- 102792 vdb-entry, x_refsource_BID
- http://packetstormsecurity.com/files/153237/RetireJS-CORS-Issue-Script-Execution.html x_refsource_MISC
- [drill-dev] 20191017 Dependencies used by Drill contain known vulnerabilities mailing-list, x_refsource_MLIST
- [drill-dev] 20191021 [jira] [Created] (DRILL-7416) Updates required to dependencies to resolve potential security vulnerabilities mailing-list, x_refsource_MLIST
- [drill-issues] 20191021 [jira] [Created] (DRILL-7416) Updates required to dependencies to resolve potential security vulnerabilities mailing-list, x_refsource_MLIST
- openSUSE-SU-2020:0395 vendor-advisory, x_refsource_SUSE
- http://packetstormsecurity.com/files/161972/Linksys-EA7500-2.0.8.194281-Cross-Site-Scripting.html x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- January 18, 2018
- Published
- January 18, 2018, 23:00 UTC
- CVE record updated
- August 6, 2024, 21:36 UTC by mitre
- NVD
- Modified, last modified June 16, 2026, 23:48 UTC
- Last checked
- CVE list November 19, 2026, 07:20 UTC; NVD November 19, 2026, 08:35 UTC; KEV December 3, 2026, 06:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Jquery?
- Apr 29, 2020CVE-2020-11023 jQuery: cross-site scripting (XSS) exploited
- May 19, 2020CVE-2020-7656 jquery: cross-site scripting (XSS)
- Apr 29, 2020CVE-2020-11022 jQuery: cross-site scripting (XSS)
- Apr 22, 2020CVE-2018-18405 Jquery: cross-site scripting (XSS) disputed
- Apr 19, 2019CVE-2019-11358 Jquery: prototype pollution
- Jan 18, 2018CVE-2016-10707 Jquery: uncontrolled recursion
- Jan 18, 2018CVE-2015-9251 Jquery: cross-site scripting (XSS)
- Jan 16, 2018CVE-2014-6071 Jquery: cross-site scripting (XSS)
Questions about CVE-2012-6708
Is CVE-2012-6708 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 06:38 UTC. FIRST's EPSS gives it a 8.63% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Jquery are affected by CVE-2012-6708?
jquery before 1.9.0, org.webjars.npm:jquery before 1.9.0, jQuery before 1.9.0 and jquery-rails before 2.2.0, per the GitHub advisory GHSA-2pqj-h3vj-pqgw. The tables above give every range the sources list.
Which version fixes CVE-2012-6708?
1.9.0 and 2.2.0, per the GitHub advisory GHSA-2pqj-h3vj-pqgw. Check the vendor's advisory before you rely on it.
How severe is CVE-2012-6708?
Medium (6.1, CVSS 3.0, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2012-6708?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.