CVE-2012-6708

js-jquery: XSS via improper selector detection

Published Jan 18, 2018 CVSS 3.0 · 6.1 Medium EPSS 8.6% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2020-0684 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.
Github GHSA Github GHSA GHSA-2pqj-h3vj-pqgw Cross-Site Scripting in jquery
Ubuntu USN Ubuntu USN USN-7622-1 jQuery vulnerabilities
History
Type Values Removed Values Added
Metrics epss

{'score': 0.01354}

epss

{'score': 0.01391}

Type Values Removed Values Added
Metrics epss

{'score': 0.0138}

epss

{'score': 0.01354}

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 6, 2024, 9:36 PM
Reserved
Jan 18, 2018, 12:00 AM
Status
Modified
Published
Jan 18, 2018, 11:29 PM
Modified
Jun 16, 2026, 11:48 PM
Severity
Moderate
Public date
Mar 21, 2017, 12:00 AM