PT-2020-4638
CVE-2020-11022
·
Published
2020-04-29
·
Updated
2026-10-31
Description by
CVSS 3.1
6.9
MediumMetricsAV: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.
Found an issue in the description? Have something to add? Feel free to write us 👾