Security mailing lists by PureSourceCode

CVE-2012-6708

MEDIUM 6.1CVSS 3.0

Cross-Site Scripting in jquery

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
18 Jan 2018
Last modified
16 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-64CWE-79
Also known as
GHSA-2pqj-h3vj-pqgw
Sources
NVDJSONOSV GHSA-2pqj-h3vj-pqgwJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.0 MEDIUM 6.1 CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
OSV GitHub CVSS 3.0 MEDIUM 6.1 CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 4.3 AV:N/AC:M/Au:N/C:N/I:P/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD jquery jquery
cpe:2.3:a:jquery:jquery:*:*:*:*:*:*:*:*
< 1.9.0 1.9.0
OSV npm jquery < 1.9.0 1.9.0
OSV Maven org.webjars.npm:jquery < 1.9.0 1.9.0
OSV NuGet jQuery < 1.9.0 1.9.0
OSV RubyGems jquery-rails < 2.2.0 2.2.0

References

History

  • 25 Nov 2026 20:20 UTC · NVD: first stored (published 18 Jan 2018)
  • 25 Nov 2026 20:10 UTC · OSV: first stored (published 1 Sep 2020)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.