CVE-2020-11022
Potential XSS vulnerability in jQuery
Public exploit code
Working exploit or proof of concept code has been published for this vulnerability. Treat unpatched systems as at risk.
- jQuery 1.2 - Cross-Site Scripting (XSS)2021-04-14 · webapps · multiple
Impact
### Impact Passing HTML 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. ### Patches This problem is patched in jQuery 3.5.0. ### Workarounds To workaround the issue without upgrading, adding the following to your code: ```js jQuery.htmlPrefilter = function( html ) { return html; }; ``` You need to use at least jQuery 1.12/2.2 or newer to be able to apply this workaround. ### References https://blog.jquery.com/2020/04/10/jquery-3-5-0-released/ https://jquery.com/upgrade-guide/3.5/ ### For more information If you have any questions or comments about this advisory, search for a relevant issue in [the jQuery repo](https://github.com/jquery/jquery/issues). If you don't find an answer, open a new issue.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| rubygems | jquery-rails | < 4.4.0 | 4.4.0 |
| composer | maximebf/debugbar | < 1.19.0 | 1.19.0 |
| composer | athlon1600/youtube-downloader | <= 4.0.0 | 4.0.1 |
| npm | jquery | >= 1.12.0, < 3.5.0 | 3.5.0 |
| nuget | jquery | >= 1.12.0, < 3.5.0 | 3.5.0 |
| maven | org.webjars.npm:jquery | >= 1.12.0, < 3.5.0 | 3.5.0 |
| composer | components/jquery | >= 1.12.0, < 3.5.0 | 3.5.0 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Jquery | Jquery | from 1.2 before 3.5.0 |
| Drupal | Drupal | from 7.0 before 7.70 from 8.7.0 before 8.7.14 from 8.8.0 before 8.8.6 |
| Debian | Debian Linux | Version 9.0 |
| Fedoraproject | Fedora | Versions 31, 32, 33 |
| Oracle | Agile Product Lifecycle Management For Process | Version 6.2.0.0 |
| Oracle | Application Testing Suite | Version 13.3.0.1 |
| Oracle | Banking Digital Experience | Versions 18.1, 18.2, 18.3, 19.1, 19.2, 20.1 |
| Oracle | Blockchain Platform | before 21.1.2 |
| Oracle | Communications Application Session Controller | Version 3.8m0 |
| Oracle | Communications Billing And Revenue Management | Versions 7.5.0.23.0, 12.0.0.3.0 |
| Oracle | Communications Diameter Signaling Router Idih\ | from 8.0.0 through 8.2.2 |
| Oracle | Communications Eagle Application Processor | from 16.1.0 through 16.4.0 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- http://security.netapp.com/advisory/ntap-20200511-0006
- https://blog.jquery.com/2020/04/10/jquery-3-5-0-released
- https://github.com/jquery/jquery/commit/1d61fd9407e6fbe82fe55cb0b938307aa0791f77
- https://github.com/jquery/jquery/releases/tag/3.5.0
- https://github.com/jquery/jquery/security/advisories/GHSA-gxr4-xjj5-5px2
- https://github.com/maximebf/php-debugbar/commit/847216e60544258c881f2733d699bbcfeefac0fc
- https://github.com/maximebf/php-debugbar/issues/447
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/jquery-rails/CVE-2020-11022.yml
- https://jquery.com/upgrade-guide/3.5
- https://lists.apache.org/thread.html/r0483ba0072783c2e1bfea613984bfb3c86e73ba8879d780dc1cc7d36@%3Cissues.flink.apache.org%3E
- https://lists.apache.org/thread.html/r49ce4243b4738dd763caeb27fa8ad6afb426ae3e8c011ff00b8b1f48@%3Cissues.flink.apache.org%3E
- https://lists.apache.org/thread.html/r54565a8f025c7c4f305355fdfd75b68eca442eebdb5f31c2e7d977ae@%3Cissues.flink.apache.org%3E
- https://lists.apache.org/thread.html/r564585d97bc069137e64f521e68ba490c7c9c5b342df5d73c49a0760@%3Cissues.flink.apache.org%3E
- https://lists.apache.org/thread.html/r706cfbc098420f7113968cc377247ec3d1439bce42e679c11c609e2d@%3Cissues.flink.apache.org%3E
- https://lists.apache.org/thread.html/r8f70b0f65d6bedf316ecd899371fd89e65333bc988f6326d2956735c@%3Cissues.flink.apache.org%3E
- https://lists.apache.org/thread.html/rbb448222ba62c430e21e13f940be4cb5cfc373cd3bce56b48c0ffa67@%3Cdev.flink.apache.org%3E
- https://lists.apache.org/thread.html/rdf44341677cf7eec7e9aa96dcf3f37ed709544863d619cca8c36f133@%3Ccommits.airflow.apache.org%3E
- https://lists.apache.org/thread.html/re4ae96fa5c1a2fe71ccbb7b7ac1538bd0cb677be270a2bf6e2f8d108@%3Cissues.flink.apache.org%3E
- https://lists.apache.org/thread.html/rede9cfaa756e050a3d83045008f84a62802fc68c17f2b4eabeaae5e4@%3Cissues.flink.apache.org%3E
- https://lists.apache.org/thread.html/ree3bd8ddb23df5fa4e372d11c226830ea3650056b1059f3965b3fce2@%3Cissues.flink.apache.org%3E
- https://lists.debian.org/debian-lts-announce/2021/03/msg00033.html
- https://lists.debian.org/debian-lts-announce/2023/08/msg00040.html
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/AVKYXLWCLZBV2N7M46KYK4LVA5OXWPBY
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QPN2L2XVQGUA2V5HNQJWHK3APSK3VN7K
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SAPQVX3XDNPGFT26QAQ6AJIXZZBZ4CD4