patchminder
Proof of concept · Exploit-DB CVE-2012-6708

Cross-site scriptingin the jquery package.

Published 18 Jan 2018 · Updated 6 Aug 2024 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (Exploit-DB).

Attack code is public
Severity
Medium 6.1
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.0 · no login needed
Attack likelihood
Moderate
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 8.6% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed in 1.9.0, 2.2.0
In plain words

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.

What to do now
  • Upgrade jquery (npm) to 1.9.0 or later.
  • Upgrade org.webjars.npm:jquery (Maven) to 1.9.0 or later.
  • Upgrade jQuery (NuGet) to 1.9.0 or later.
  • Upgrade jquery-rails (RubyGems) to 2.2.0 or later.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
n/a
Not confirmed
Not confirmed
CVE record
jquery (npm)
before 1.9.0
1.9.0
GitHub advisory
org.webjars.npm:jquery (Maven)
before 1.9.0
1.9.0
GitHub advisory
jQuery (NuGet)
before 1.9.0
1.9.0
GitHub advisory
jquery-rails (RubyGems)
before 2.2.0
2.2.0
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 18 Jan 2018
    CVE ID reserved by mitre.
  2. 18 Jan 2018
    Published in the CVE List.
  3. 6 Aug 2024
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (Exploit-DB).

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
1 entry
GitHub proof of concepts
None known
Exploit-DBEDB-ID 49708web application exploit for hardware, published 25 Mar 2021

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other vulnerabilities in this package

References
Cite this page

Patchminder. CVE-2012-6708: Cross-site scripting in the jquery package. https://patchminder.com/cve/cve-2012-6708/ (accessed 5 December 2026).