CVE-2020-11023
Potential XSS vulnerability in jQuery
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)
| Artifact | Affected versions | Fixed 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
68% of the dependent artifacts (1,391) still pull an affected version in their latest release.
| Depth | Dependent 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
- org.webjars » bootstrap474 usages
- org.webjars » font-awesome188 usages
- io.get-coursier » coursier142 usages
- be.doeraene » scalajs-jquery113 usages
- org.xwiki.platform » xwiki-platform-test-docker101 usages
- org.webjars » jquery-ui98 usages
- org.fenixedu » bennu-core96 usages
- de.tudarmstadt.ukp.inception.app » inception-model90 usages
- de.tudarmstadt.ukp.inception.app » inception-support87 usages
- org.xwiki.platform » xwiki-platform-tool-packager-plugin77 usages
- de.tudarmstadt.ukp.inception.app » inception-api76 usages
- org.xwiki.platform » xwiki-platform-administration-ui75 usages
- com.haulmont.cuba » cuba-web71 usages
- de.tudarmstadt.ukp.clarin.webanno » webanno-model71 usages
- de.agilecoders.wicket » wicket-bootstrap-core70 usages
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
