Skip to main content
Public proof of conceptFix available

CVE-2012-6708

A public proof of concept exists; no exploitation attested.

  • Published2018-01-18
  • Fixed in1.9.0
  • WeaknessCWE-79

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2021-03-25Exploit-DB entryExploit-DB

Versions per branch

NVD · OSV
jQuery
BranchAffectedFixed in
1.9< 1.9.01.9.0
jquery-rails
BranchAffectedFixed in
2.2< 2.2.02.2.0

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • bazelAzure Linux:3all versions · no fixed version listedand 1 other package
  • cephAzure Linux:3all versions · fixed in 18.2.2-1
  • jqueryUbuntu:Pro:18.04:LTSall versions · fixed in 3.2.1-1ubuntu0.1~esm1
  • jqueryUbuntu:Pro:16.04:LTSall versions · fixed in 1.11.3+dfsg-4ubuntu0.1~esm1
  • jqueryUbuntu:Pro:14.04:LTSall versions · fixed in 1.7.2+dfsg-2ubuntu1+esm1
  • jqueryTuxCare:npmfrom 1.8.2-tuxcare.0 · fixed in 1.8.2-tuxcare.2
  • jqueryTuxCare:npmfrom 1.4.1-tuxcare.0 · fixed in 1.4.1-tuxcare.1
  • jqueryTuxCare:npmfrom 1.4.2-tuxcare.0 · fixed in 1.4.2-tuxcare.1

12 more package ranges on OSV.dev

Vendor advisories

  • CVE-2012-6708 Red Hat Product Security198 known affected

    js-jquery: XSS via improper selector detection

    jquery as a component of Red Hat 3scale API Management Platform 2 · pcp-collector as a component of Red Hat Enterprise Linux 6 · pcp-conf as a component of Red Hat Enterprise Linux 6 · +195 more

Full record on NVD

Fix

  1. Update jQuery to 1.9.0
  2. No fix available, says the vendor Red Hat Product Security CVE-2012-6708 · 1 productFix deferred
  3. No fix available, says the vendor Red Hat Product Security CVE-2012-6708 · 4 productsAffected
  4. No fix planned, says the vendor Red Hat Product Security CVE-2012-6708 · 1 productOut of support scope
  5. No fix planned, says the vendor Red Hat Product Security CVE-2012-6708 · 192 productsWill not fix

Advisories and patches

Detection

read 2026-12-04 21:56 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
EDB-49708
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Published
2018-01-18
Last modified
2026-06-16
NVD status
Modified
GitHub advisory
GHSA-2pqj-h3vj-pqgw

Frequently asked questions

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.

Is CVE-2012-6708 actively exploited?

Active exploitation of CVE-2012-6708 has not been confirmed. Its EPSS score was 8.6% on 2026-12-04, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2012-6708?

CVE-2012-6708 has a CVSS v3 base score of 6.1 (Medium severity), with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.

Running jQuery? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record