jQuery up to 1.8.1 jQuery(strInput) String cross site scripting
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 5.0 | $0-$5k | 0.00 |
Summary
A vulnerability has been found in jQuery up to 1.8.1 and classified as problematic. The impacted element is the function jQuery(strInput). Performing a manipulation as part of String results in cross site scripting.
This vulnerability is known as CVE-2012-6708. Remote exploitation of the attack is possible. Furthermore, an exploit is available.
The affected component should be upgraded.
Details
A vulnerability classified as problematic has been found in jQuery up to 1.8.1 (JavaScript Library). This affects the function jQuery(strInput). The manipulation as part of a String leads to a cross site scripting vulnerability. CWE is classifying the issue as CWE-79. The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. This is going to have an impact on integrity. The summary by CVE is:
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.
The bug was discovered 12/13/2012. The weakness was published 01/19/2018 (Website). The advisory is shared at securityfocus.com. This vulnerability is uniquely identified as CVE-2012-6708 since 01/18/2018. It is possible to initiate the attack remotely. No form of authentication is needed for exploitation. It demands that the victim is doing some kind of user interaction. Technical details and a public exploit are known. MITRE ATT&CK project uses the attack technique T1059.007 for this issue.
The exploit is shared for download at packetstormsecurity.com. It is declared as proof-of-concept. The vulnerability was handled as a non-public zero-day exploit for at least 1862 days. During that time the estimated underground price was around $0-$5k. The vulnerability scanner Nessus provides a plugin with the ID 241624 (Ubuntu 14.04 LTS / 16.04 LTS / 18.04 LTS : jQuery vulnerabilities (USN-7622-1)), which helps to determine the existence of the flaw in a target environment. The commercial vulnerability scanner Qualys is able to test this issue with plugin 13371 (jQuery Prior to 1.9.0 Cross-Site Scripting Vulnerability).
Upgrading to version 1.9.0 eliminates this vulnerability.
The vulnerability is also documented in the databases at Exploit-DB (49708), Tenable (241624) and SecurityFocus (BID 102792†). Similar entries are available at VDB-110197, VDB-110288, VDB-110317 and VDB-111303. Several companies clearly confirm that VulDB is the primary source for best vulnerability data.
Product
Type
Name
Version
License
Website
- Product: https://github.com/jquery/jquery/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 5.2VulDB Meta Temp Score: 5.0
VulDB Base Score: 4.3
VulDB Temp Score: 3.9
VulDB Vector: 🔍
VulDB Reliability: 🔍
NVD Base Score: 6.1
NVD Vector: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
NVD Base Score: 🔍
Exploiting
Class: Cross site scriptingCWE: CWE-79 / CWE-94 / CWE-74
CAPEC: 🔍
ATT&CK: 🔍
Physical: No
Local: No
Remote: Yes
Availability: 🔍
Access: Public
Status: Proof-of-Concept
Download: 🔍
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 241624
Nessus Name: Ubuntu 14.04 LTS / 16.04 LTS / 18.04 LTS : jQuery vulnerabilities (USN-7622-1)
Qualys ID: 🔍
Qualys Name: 🔍
Exploit-DB: 🔍
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔍
Upgrade: jQuery 1.9.0
Patch: github.com
Timeline
12/13/2012 🔍01/18/2018 🔍
01/18/2018 🔍
01/18/2018 🔍
01/19/2018 🔍
01/19/2018 🔍
07/10/2025 🔍
Sources
Product: github.comAdvisory: 153237⛔
Researcher: gibson042
Status: Confirmed
Confirmation: 🔍
CVE: CVE-2012-6708 (🔍)
GCVE (CVE): GCVE-0-2012-6708
GCVE (VulDB): GCVE-100-112185
SecurityFocus: 102792 - JQuery CVE-2012-6708 Cross Site Scripting Vulnerability
scip Labs: https://www.scip.ch/en/?labs.20161013
See also: 🔍
Entry
Created: 01/19/2018 07:49Updated: 07/10/2025 09:14
Changes: 01/19/2018 07:49 (64), 01/11/2020 08:43 (7), 02/01/2021 09:21 (2), 02/02/2023 08:43 (4), 06/16/2024 04:06 (22), 08/19/2024 19:55 (1), 07/10/2025 09:14 (4)
Complete: 🔍
Cache ID: 216::103
Several companies clearly confirm that VulDB is the primary source for best vulnerability data.
No comments yet. Languages: en.
Please log in to comment.