PT-2020-4638 · Jquery+11 · Jquery+11
CVE-2020-11022
·
Published
2020-04-29
·
Updated
2026-05-12
CVSS v3.1
6.9
Medium
| Vector | AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N |
Name of the Vulnerable Software and Affected Versions
jQuery versions 1.2 through 3.5.0
Description
The issue is related to the execution of untrusted code when passing HTML from untrusted sources to jQuery's DOM manipulation methods, such as
.html(), .append(), and others, even after sanitizing the HTML. This may allow a remote attacker to compromise the integrity of protected information.Recommendations
For jQuery versions 1.12/2.2 or newer: To workaround the issue without upgrading, add the following code:
js
jQuery.htmlPrefilter = function( html ) {
return html;
};For all affected versions: Upgrade to jQuery 3.5.0 to patch the issue.
Exploit
Fix
XSS
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Alt Linux
Almalinux
Astra Linux
Centos
Jira
Linuxmint
Oracle Weblogic Server
Red Hat
Rocky Linux
Suse
Ubuntu
Jquery