VDB

CVE-2012-6708

CVE-2012-6708 PUBLISHED CVSS 6.099999904632568 MEDIUM

Cross-Site Scripting in jquery

Record from NVD · Published January 18, 2018

jquery-rails is fixed in 2.2.0 (RubyGems)

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.

EPSS 8.63% · 95.2th percentile

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
rdocRubyGems6.1.2
jquery-railsRubyGems2.2.0
org.webjars.npm:jqueryMaven Central1.8.3
jqueryUbuntu:Pro:14.04:LTS1.7.2+dfsg-2ubuntu1+esm1

Risk scores

CVSS 3.0
6.099999904632568
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS Score
8.63%
95.2th percentile

Affected products

VendorProductVersions
jqueryjquery0

Timeline

  • Jan 18, 2018 CVE Published
  • Oct 3, 2019 PoC Published (3 in total, the first dated here)
  • Feb 4, 2022 EPSS Score (30 in total, the first dated here)
  • Mar 5, 2026 Distribution Patch
  • Mar 5, 2026 Security Advisory (4 in total, the first dated here)
  • Oct 25, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2012-6708
vulnetix vdb fixes CVE-2012-6708

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2012-6708/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›