MODERATE 6.9

CVE-2020-11023

Potential XSS vulnerability in jQuery

Known exploited: listed in the CISA Known Exploited Vulnerabilities catalog.

Description

Impact

Passing HTML containing <option> elements from untrusted sources - even after sanitizing them - to one of jQuery's DOM manipulation methods (i.e. .html(), .append(), and others) may execute untrusted code.

Patches

This problem is patched in jQuery 3.5.0.

Workarounds

To workaround this issue without upgrading, use DOMPurify with its SAFE_FOR_JQUERY option to sanitize the HTML string before passing it to a jQuery method.

References

https://blog.jquery.com/2020/04/10/jquery-3-5-0-released/

For more information

If you have any questions or comments about this advisory, search for a relevant issue in the jQuery repo. If you don't find an answer, open a new issue.

Affected Maven artifacts (3)

ArtifactAffected versionsFixed in
org.webjars.npm » jquery
>= 1.0.3, < 3.5.0
3.5.0
org.mvnpm » jqueryvia npm jquery
>= 1.0.3, < 3.5.0
3.5.0
org.webjars » jqueryvia npm jquery
>= 1.0.3, < 3.5.0
3.5.0
org.webjars.npm » jqueryvia npm jquery
>= 1.0.3, < 3.5.0
3.5.0

Blast radius

3affected artifacts
96affected versions
2,030dependent artifacts (est.)
67,081dependent versions

68% of the dependent artifacts (1,391) still pull an affected version in their latest release.

DepthDependent versions
Direct
8,698
2 hops
20,257
3 hops
22,407
4 hops
13,093
5 hops
2,315
6 hops
311

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.

Other ecosystems

Also affects npm (1 package) NuGet (1 package) Packagist (1 package) RubyGems (1 package) . See all on OSV

References

Advisorynvd.nist.gov
Packagegithub.com
Webgithub.com
Webgithub.com
Weblists.apache.org
Weblists.apache.org
Weblists.apache.org
Weblists.apache.org
Weblists.apache.org
Weblists.apache.org
Weblists.apache.org
Weblists.apache.org
Weblists.apache.org
Weblists.apache.org
Weblists.apache.org
Weblists.apache.org
Weblists.apache.org
Webtenable.com
Weblists.apache.org
Weblists.apache.org
Weblists.apache.org
Weblists.apache.org
Weblists.apache.org
Weblists.apache.org
Weblists.apache.org
Weblists.apache.org
Weblists.apache.org
Weblists.apache.org
Weblists.apache.org
Weblists.apache.org
Weblists.apache.org
Weblists.apache.org
Weblists.apache.org
Webtenable.com
Weboracle.com
Weboracle.com
Weboracle.com
Weboracle.com
Weboracle.com
Weboracle.com