Cross-site scriptingin the jquery package.
Proof of concept public (Exploit-DB).
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.
- 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.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 18 Jan 2018CVE ID reserved by mitre.
- 18 Jan 2018Published in the CVE List.
- 6 Aug 2024CVE record last updated.
Attack code anyone can find
Exploit maturity: Proof of concept (Exploit-DB).
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.
Report a link
Other vulnerabilities in this package
- snyk.io x_refsource_MISC
- bugs.jquery.com x_refsource_MISC
- github.com x_refsource_MISC
- help.ecostruxureit.com x_refsource_CONFIRM
- www.securityfocus.com vdb-entry, x_refsource_BID
- packetstormsecurity.com x_refsource_MISC
- lists.apache.org mailing-list, x_refsource_MLIST
- lists.apache.org mailing-list, x_refsource_MLIST
- lists.apache.org mailing-list, x_refsource_MLIST
- lists.opensuse.org vendor-advisory, x_refsource_SUSE
- packetstormsecurity.com x_refsource_MISC
Patchminder. CVE-2012-6708: Cross-site scripting in the jquery package. https://patchminder.com/cve/cve-2012-6708/ (accessed 5 December 2026).