{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2012-6708","id":"CVE-2012-6708","title":"Cross-Site Scripting in jquery","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, jQ","descriptionLong":"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.","published":"2018-01-18T23:00:00.000Z","updated":"2026-06-16T23:48:38.840Z","reserved":"2018-01-18T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},"metrics":[{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","rating":"medium","source":"NVD"}],"rating":"medium","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"status":"affected","version":"n/a"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"jquery","purl":"pkg:npm/jquery","ranges":["<1.9.0"],"fixed":["1.9.0"],"advisory":"GHSA-2pqj-h3vj-pqgw"},{"ecosystem":"Maven","name":"org.webjars.npm:jquery","purl":"pkg:maven/org.webjars.npm/jquery","ranges":["<1.9.0"],"fixed":["1.9.0"],"advisory":"GHSA-2pqj-h3vj-pqgw"},{"ecosystem":"NuGet","name":"jQuery","purl":"pkg:nuget/jQuery","ranges":["<1.9.0"],"fixed":["1.9.0"],"advisory":"GHSA-2pqj-h3vj-pqgw"},{"ecosystem":"RubyGems","name":"jquery-rails","purl":"pkg:gem/jquery-rails","ranges":["<2.2.0"],"fixed":["2.2.0"],"advisory":"GHSA-2pqj-h3vj-pqgw"}],"cwes":["CWE-79","CWE-64"],"aliases":["GHSA-2pqj-h3vj-pqgw"],"references":[{"url":"https://snyk.io/vuln/npm:jquery:20120206","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","advisory","fix","web"]},{"url":"https://bugs.jquery.com/ticket/11290","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Vendor Advisory","advisory","evidence","report","web"]},{"url":"https://github.com/jquery/jquery/commit/05531fc4080ae24070930d15ae0cea7ae056457d","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","advisory","fix","web"]},{"url":"https://help.ecostruxureit.com/display/public/UADCE725/Security+fixes+in+StruxureWare+Data+Center+Expert+v7.6.0","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","web"]},{"url":"http://www.securityfocus.com/bid/102792","tags":["vdb-entry","x_refsource_BID","x_transferred","Third Party Advisory","VDB Entry","advisory"]},{"url":"http://packetstormsecurity.com/files/153237/RetireJS-CORS-Issue-Script-Execution.html","tags":["x_refsource_MISC","x_transferred","web"]},{"url":"https://lists.apache.org/thread.html/b0656d359c7d40ec9f39c8cc61bca66802ef9a2a12ee199f5b0c1442%40%3Cdev.drill.apache.org%3E","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"https://lists.apache.org/thread.html/519eb0fd45642dcecd9ff74cb3e71c20a4753f7d82e2f07864b5108f%40%3Cdev.drill.apache.org%3E","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"https://lists.apache.org/thread.html/f9bc3e55f4e28d1dcd1a69aae6d53e609a758e34d2869b4d798e13cc%40%3Cissues.drill.apache.org%3E","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-03/msg00041.html","tags":["vendor-advisory","x_refsource_SUSE","x_transferred","web"]},{"url":"http://packetstormsecurity.com/files/161972/Linksys-EA7500-2.0.8.194281-Cross-Site-Scripting.html","tags":["x_refsource_MISC","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-16011","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2012-6708","tags":["advisory"]},{"url":"https://web.archive.org/web/20200227132049/http://www.securityfocus.com/bid/102792","tags":["web"]},{"url":"https://security.snyk.io/vuln/SNYK-DOTNET-JQUERY-450223","tags":["web"]},{"url":"https://research.insecurelabs.org/jquery/test","tags":["web"]},{"url":"https://lists.apache.org/thread.html/f9bc3e55f4e28d1dcd1a69aae6d53e609a758e34d2869b4d798e13cc@%3Cissues.drill.apache.org%3E","tags":["web"]},{"url":"https://lists.apache.org/thread.html/b0656d359c7d40ec9f39c8cc61bca66802ef9a2a12ee199f5b0c1442@%3Cdev.drill.apache.org%3E","tags":["web"]},{"url":"https://lists.apache.org/thread.html/519eb0fd45642dcecd9ff74cb3e71c20a4753f7d82e2f07864b5108f@%3Cdev.drill.apache.org%3E","tags":["web"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/jquery-rails/CVE-2012-6708.yml","tags":["web"]},{"url":"https://github.com/rails/jquery-rails/blob/v2.2.0/vendor/assets/javascripts/jquery.js#L67","tags":["web"]},{"url":"https://github.com/rails/jquery-rails/blob/v2.1.4/vendor/assets/javascripts/jquery.js#L59","tags":["web"]},{"url":"https://github.com/jquery/jquery","tags":["package"]},{"url":"https://bugs.jquery.com/ticket/9521","tags":["web"]},{"url":"https://bugs.jquery.com/ticket/6429","tags":["web"]},{"url":"https://bugs.jquery.com/ticket/12531","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.08632,"epssPercentile":0.95205,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2012-6708","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2012-6708","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2012-6708","ok":true,"note":"4 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-2pqj-h3vj-pqgw","ok":true,"note":"GHSA-2pqj-h3vj-pqgw"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2012-6708","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":["ruby"],"critical":[],"attention":null}