Wiz Agents & Workflows are here

CVE-2020-11023
JavaScript vulnerability analysis and mitigation

Overview

In jQuery versions greater than or equal to 1.0.3 and before 3.5.0, passing HTML containing elements from untrusted sources - even after sanitizing it - to one of jQuery's DOM manipulation methods (i.e. .html(), .append(), and others) may execute untrusted code. This vulnerability was discovered in April 2020 and is tracked as CVE-2020-11023. The issue affects multiple versions of jQuery and has been patched in jQuery 3.5.0 (jQuery Blog, NVD).

Technical details

The vulnerability exists in jQuery's DOM manipulation methods when handling HTML containing elements. Even after sanitizing the HTML input, passing it to methods like .html(), .append() and others could still result in execution of untrusted code. The issue affects jQuery's htmlPrefilter method which is used to process HTML before insertion into the DOM. The CVSS v3.1 base score is 6.1 (Medium severity) indicating network vector, low attack complexity, and requiring user interaction (GitHub Advisory).

Impact

A successful exploit could allow an attacker to execute arbitrary JavaScript code in the context of the web application using the vulnerable jQuery version. This could potentially lead to cross-site scripting (XSS) attacks even when proper HTML sanitization is performed before passing content to jQuery's DOM manipulation methods (NVD).

Mitigation and workarounds

The recommended mitigation is to upgrade to jQuery version 3.5.0 or later which contains the fix for this vulnerability. For cases where upgrading is not immediately possible, using DOMPurify with its SAFE_FOR_JQUERY option is recommended to sanitize HTML strings before passing them to jQuery methods. The jQuery migrate plugin can also be used to restore the old behavior if needed by calling jQuery.UNSAFE_restoreLegacyHtmlPrefilter() (jQuery Blog).

Community reactions

The vulnerability received significant attention from the security community and affected many popular frameworks and applications that use jQuery. Multiple vendors including Drupal, Oracle, and others released security advisories and patches for their products to address this vulnerability. The issue was considered serious enough to warrant emergency updates in several cases (Drupal SA).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-34156CRITICAL9.9
  • JavaScriptJavaScript
  • @nocobase/plugin-workflow-javascript
NoYesMar 30, 2026
CVE-2026-34363HIGH8.2
  • JavaScriptJavaScript
  • parse-server
NoYesMar 30, 2026
CVE-2026-33949HIGH8.1
  • JavaScriptJavaScript
  • @tinacms/graphql
NoYesMar 30, 2026
CVE-2026-34043MEDIUM5.9
  • JavaScriptJavaScript
  • serialize-javascript
NoYesMar 31, 2026
CVE-2026-34373MEDIUM5.3
  • JavaScriptJavaScript
  • parse-server
NoYesMar 30, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management