Cross-site scripting in jQuery



Published: 2020-04-21 | Updated: 2022-07-14
Risk Low
Patch available YES
Number of vulnerabilities 2
CVE-ID CVE-2020-11022
CVE-2020-11023
CWE-ID CWE-79
Exploitation vector Network
Public exploit Public exploit code for vulnerability #1 is available.
Public exploit code for vulnerability #2 is available.
Vulnerable software
Subscribe
jQuery
Web applications / JS libraries

Vendor The jQuery Team

Security Bulletin

This security bulletin contains information about 2 vulnerabilities.

Updated: 05.05.2020

1) Added vulnerability #2, assigned CVE-ID to vulnerability #1, updated description, list of affected versions and references sections.

2) Assigned CVE-ID to vulnerability #2.

1) Cross-site scripting

EUVDB-ID: #VU27052

Risk: Low

CVSSv3.1:

CVE-ID: CVE-2020-11022

CWE-ID: CWE-79 - Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Exploit availability: Yes

Description

The disclosed vulnerability allows a remote attacker to perform cross-site scripting (XSS) attacks.

The vulnerability exists due to insufficient sanitization of user-supplied data in the regex operation in "jQuery.htmlPrefilter". A remote attacker can pass specially crafted data to the application that uses .html()</code>, <code>.append() or similar methods for it and execute arbitrary JavaScript code in user's browser in context of vulnerable website.

Successful exploitation of this vulnerability may allow a remote attacker to steal potentially sensitive information, change appearance of the web page, perform phishing and drive-by-download attacks.

Mitigation

Install updates from vendor's website.

Vulnerable software versions

jQuery: 1.2 - 3.4.1


CPE2.3 External links

http://snyk.io/vuln/SNYK-JS-JQUERY-565129
http://github.com/jquery/jquery/commit/1d61fd9407e6fbe82fe55cb0b938307aa0791f77
http://blog.jquery.com/2020/04/10/jquery-3-5-0-released/
http://github.com/advisories/GHSA-gxr4-xjj5-5px2

Q & A

Can this vulnerability be exploited remotely?

Is there known malware, which exploits this vulnerability?

2) Cross-site scripting

EUVDB-ID: #VU27519

Risk: Low

CVSSv3.1:

CVE-ID: CVE-2020-11023

CWE-ID: CWE-79 - Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Exploit availability: Yes

Description

The disclosed vulnerability allows a remote attacker to perform cross-site scripting (XSS) attacks.

The vulnerability exists due to insufficient sanitization of user-supplied data when passing <option> elements to jQuery’s DOM manipulation methods. A remote attacker can execute arbitrary JavaScript code in user's browser in context of vulnerable website.

Successful exploitation of this vulnerability may allow a remote attacker to steal potentially sensitive information, change appearance of the web page, perform phishing and drive-by-download attacks.

Mitigation

Install updates from vendor's website.

Vulnerable software versions

jQuery: 1.0 - 3.4.1


CPE2.3 External links

http://blog.jquery.com/2020/05/04/jquery-3-5-1-released-fixing-a-regression/

Q & A

Can this vulnerability be exploited remotely?

Is there known malware, which exploits this vulnerability?



###SIDEBAR###