PT-2020-6938 · Jquery · Jquery
Published
2020-04-10
·
Updated
2025-09-29
·
CVE-2020-23064
CVSS v2.0
6.4
Medium
| Vector | AV:N/AC:L/Au:N/C:P/I:P/A:N |
Name of the Vulnerable Software and Affected Versions
jQuery versions 2.2.0 through 3.5.0
Description
The issue is related to Cross Site Scripting vulnerability, which allows a remote attacker to execute arbitrary code via the
<option> element. Passing HTML containing <option> elements from untrusted sources to one of jQuery's DOM manipulation methods, such as .html() or .append(), may execute untrusted code.Recommendations
To resolve the issue, update to jQuery 3.5.0 or later.
As a temporary workaround, use DOMPurify with its
SAFE FOR JQUERY option to sanitize the HTML string before passing it to a jQuery method.Exploit
Fix
XSS
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Jquery