---
id: CVE-2020-11022
title: jQuery has a potential XSS vulnerability
summary: >-
  In jQuery starting with 1.12.0 and before 3.5.0, 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. This
  problem …
severity: medium
cvss: 6.9
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N'
cvssSource: cna
cwe:
  - CWE-79
vendor: jquery
product: jQuery
affected:
  - 'jQuery >= 1.12.0, < 3.5.0'
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-11-02T17:53:59.958763Z'
exploitAvailable: true
published: '2020-04-29'
updated: '2026-11-02'
sourceUpdated: '2026-11-02T17:54:18.438Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2020-11022'
references:
  - url: 'https://github.com/jquery/jquery/security/advisories/GHSA-gxr4-xjj5-5px2'
    label: 'https://github.com/jquery/jquery/security/advisories/GHSA-gxr4-xjj5-5px2'
  - url: 'https://github.com/maximebf/php-debugbar/issues/447'
    label: 'https://github.com/maximebf/php-debugbar/issues/447'
  - url: >-
      https://github.com/jquery/jquery/commit/1d61fd9407e6fbe82fe55cb0b938307aa0791f77
    label: >-
      https://github.com/jquery/jquery/commit/1d61fd9407e6fbe82fe55cb0b938307aa0791f77
  - url: >-
      https://github.com/maximebf/php-debugbar/commit/847216e60544258c881f2733d699bbcfeefac0fc
    label: >-
      https://github.com/maximebf/php-debugbar/commit/847216e60544258c881f2733d699bbcfeefac0fc
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VOE7P7APPRQKD4FGNHBKJPDY6FFCOH3W
    label: >-
      https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VOE7P7APPRQKD4FGNHBKJPDY6FFCOH3W
  - url: >-
      https://lists.opensuse.org/opensuse-security-announce/2020-07/msg00067.html
    label: >-
      https://lists.opensuse.org/opensuse-security-announce/2020-07/msg00067.html
  - url: >-
      https://lists.opensuse.org/opensuse-security-announce/2020-07/msg00085.html
    label: >-
      https://lists.opensuse.org/opensuse-security-announce/2020-07/msg00085.html
  - url: >-
      https://lists.opensuse.org/opensuse-security-announce/2020-11/msg00039.html
    label: >-
      https://lists.opensuse.org/opensuse-security-announce/2020-11/msg00039.html
  - url: >-
      https://packetstormsecurity.com/files/162159/jQuery-1.2-Cross-Site-Scripting.html
    label: >-
      https://packetstormsecurity.com/files/162159/jQuery-1.2-Cross-Site-Scripting.html
  - url: 'https://security.gentoo.org/glsa/202007-03'
    label: 'https://security.gentoo.org/glsa/202007-03'
  - url: 'https://www.debian.org/security/2020/dsa-4693'
    label: 'https://www.debian.org/security/2020/dsa-4693'
  - url: 'https://www.drupal.org/sa-core-2020-002'
    label: 'https://www.drupal.org/sa-core-2020-002'
  - url: 'https://www.oracle.com/security-alerts/cpuApr2021.html'
    label: 'https://www.oracle.com/security-alerts/cpuApr2021.html'
  - url: 'https://www.oracle.com/security-alerts/cpuapr2022.html'
    label: 'https://www.oracle.com/security-alerts/cpuapr2022.html'
  - url: 'https://www.oracle.com/security-alerts/cpujan2021.html'
    label: 'https://www.oracle.com/security-alerts/cpujan2021.html'
  - url: 'https://www.oracle.com/security-alerts/cpujan2022.html'
    label: 'https://www.oracle.com/security-alerts/cpujan2022.html'
  - url: 'https://www.oracle.com/security-alerts/cpujul2020.html'
    label: 'https://www.oracle.com/security-alerts/cpujul2020.html'
  - url: 'https://www.oracle.com/security-alerts/cpujul2021.html'
    label: 'https://www.oracle.com/security-alerts/cpujul2021.html'
  - url: 'https://www.oracle.com/security-alerts/cpujul2022.html'
    label: 'https://www.oracle.com/security-alerts/cpujul2022.html'
  - url: 'https://www.oracle.com/security-alerts/cpuoct2020.html'
    label: 'https://www.oracle.com/security-alerts/cpuoct2020.html'
  - url: 'https://www.oracle.com/security-alerts/cpuoct2021.html'
    label: 'https://www.oracle.com/security-alerts/cpuoct2021.html'
  - url: 'https://www.tenable.com/security/tns-2020-10'
    label: 'https://www.tenable.com/security/tns-2020-10'
  - url: 'https://www.tenable.com/security/tns-2020-11'
    label: 'https://www.tenable.com/security/tns-2020-11'
  - url: 'https://www.tenable.com/security/tns-2021-02'
    label: 'https://www.tenable.com/security/tns-2021-02'
  - url: 'https://www.tenable.com/security/tns-2021-10'
    label: 'https://www.tenable.com/security/tns-2021-10'
  - url: 'https://blog.jquery.com/2020/04/10/jquery-3-5-0-released'
    label: 'https://blog.jquery.com/2020/04/10/jquery-3-5-0-released'
  - url: 'https://github.com/jquery/jquery/releases/tag/3.5.0'
    label: 'https://github.com/jquery/jquery/releases/tag/3.5.0'
  - url: >-
      https://github.com/rubysec/ruby-advisory-db/blob/master/gems/jquery-rails/CVE-2020-11022.yml
    label: >-
      https://github.com/rubysec/ruby-advisory-db/blob/master/gems/jquery-rails/CVE-2020-11022.yml
  - url: 'https://jquery.com/upgrade-guide/3.5'
    label: 'https://jquery.com/upgrade-guide/3.5'
  - url: >-
      https://lists.apache.org/thread.html/r0483ba0072783c2e1bfea613984bfb3c86e73ba8879d780dc1cc7d36@%3Cissues.flink.apache.org%3E
    label: >-
      https://lists.apache.org/thread.html/r0483ba0072783c2e1bfea613984bfb3c86e73ba8879d780dc1cc7d36@%3Cissues.flink.apache.org%3E
  - url: >-
      https://lists.apache.org/thread.html/r49ce4243b4738dd763caeb27fa8ad6afb426ae3e8c011ff00b8b1f48@%3Cissues.flink.apache.org%3E
    label: >-
      https://lists.apache.org/thread.html/r49ce4243b4738dd763caeb27fa8ad6afb426ae3e8c011ff00b8b1f48@%3Cissues.flink.apache.org%3E
  - url: >-
      https://lists.apache.org/thread.html/r54565a8f025c7c4f305355fdfd75b68eca442eebdb5f31c2e7d977ae@%3Cissues.flink.apache.org%3E
    label: >-
      https://lists.apache.org/thread.html/r54565a8f025c7c4f305355fdfd75b68eca442eebdb5f31c2e7d977ae@%3Cissues.flink.apache.org%3E
  - url: >-
      https://lists.apache.org/thread.html/r564585d97bc069137e64f521e68ba490c7c9c5b342df5d73c49a0760@%3Cissues.flink.apache.org%3E
    label: >-
      https://lists.apache.org/thread.html/r564585d97bc069137e64f521e68ba490c7c9c5b342df5d73c49a0760@%3Cissues.flink.apache.org%3E
  - url: >-
      https://lists.apache.org/thread.html/r706cfbc098420f7113968cc377247ec3d1439bce42e679c11c609e2d@%3Cissues.flink.apache.org%3E
    label: >-
      https://lists.apache.org/thread.html/r706cfbc098420f7113968cc377247ec3d1439bce42e679c11c609e2d@%3Cissues.flink.apache.org%3E
  - url: >-
      https://lists.apache.org/thread.html/r8f70b0f65d6bedf316ecd899371fd89e65333bc988f6326d2956735c@%3Cissues.flink.apache.org%3E
    label: >-
      https://lists.apache.org/thread.html/r8f70b0f65d6bedf316ecd899371fd89e65333bc988f6326d2956735c@%3Cissues.flink.apache.org%3E
  - url: >-
      https://lists.apache.org/thread.html/rbb448222ba62c430e21e13f940be4cb5cfc373cd3bce56b48c0ffa67@%3Cdev.flink.apache.org%3E
    label: >-
      https://lists.apache.org/thread.html/rbb448222ba62c430e21e13f940be4cb5cfc373cd3bce56b48c0ffa67@%3Cdev.flink.apache.org%3E
  - url: >-
      https://lists.apache.org/thread.html/rdf44341677cf7eec7e9aa96dcf3f37ed709544863d619cca8c36f133@%3Ccommits.airflow.apache.org%3E
    label: >-
      https://lists.apache.org/thread.html/rdf44341677cf7eec7e9aa96dcf3f37ed709544863d619cca8c36f133@%3Ccommits.airflow.apache.org%3E
  - url: >-
      https://lists.apache.org/thread.html/re4ae96fa5c1a2fe71ccbb7b7ac1538bd0cb677be270a2bf6e2f8d108@%3Cissues.flink.apache.org%3E
    label: >-
      https://lists.apache.org/thread.html/re4ae96fa5c1a2fe71ccbb7b7ac1538bd0cb677be270a2bf6e2f8d108@%3Cissues.flink.apache.org%3E
  - url: >-
      https://lists.apache.org/thread.html/rede9cfaa756e050a3d83045008f84a62802fc68c17f2b4eabeaae5e4@%3Cissues.flink.apache.org%3E
    label: >-
      https://lists.apache.org/thread.html/rede9cfaa756e050a3d83045008f84a62802fc68c17f2b4eabeaae5e4@%3Cissues.flink.apache.org%3E
  - url: >-
      https://lists.apache.org/thread.html/ree3bd8ddb23df5fa4e372d11c226830ea3650056b1059f3965b3fce2@%3Cissues.flink.apache.org%3E
    label: >-
      https://lists.apache.org/thread.html/ree3bd8ddb23df5fa4e372d11c226830ea3650056b1059f3965b3fce2@%3Cissues.flink.apache.org%3E
  - url: 'https://lists.debian.org/debian-lts-announce/2021/03/msg00033.html'
    label: 'https://lists.debian.org/debian-lts-announce/2021/03/msg00033.html'
  - url: 'https://lists.debian.org/debian-lts-announce/2023/08/msg00040.html'
    label: 'https://lists.debian.org/debian-lts-announce/2023/08/msg00040.html'
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/AVKYXLWCLZBV2N7M46KYK4LVA5OXWPBY
    label: >-
      https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/AVKYXLWCLZBV2N7M46KYK4LVA5OXWPBY
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QPN2L2XVQGUA2V5HNQJWHK3APSK3VN7K
    label: >-
      https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QPN2L2XVQGUA2V5HNQJWHK3APSK3VN7K
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SAPQVX3XDNPGFT26QAQ6AJIXZZBZ4CD4
    label: >-
      https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SAPQVX3XDNPGFT26QAQ6AJIXZZBZ4CD4
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SFP4UK4EGP4AFH2MWYJ5A5Z4I7XVFQ6B
    label: >-
      https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SFP4UK4EGP4AFH2MWYJ5A5Z4I7XVFQ6B
  - url: 'http://security.netapp.com/advisory/ntap-20200511-0006'
    label: 'http://security.netapp.com/advisory/ntap-20200511-0006'
tags:
  - cve.org
  - exploit-available
epss: 0.99215
epssPercentile: 0.99934
exploits:
  exploitdb: true
  github: 3
  githubRepos:
    - 'https://github.com/0xAJ2K/CVE-2020-11022-CVE-2020-11023'
    - 'https://github.com/Snorlyd/https-nj.gov---CVE-2020-11022'
    - 'https://github.com/okni2k/HW-Pyton-10'
  checkedAt: '2026-11-05T19:31:18.367Z'
ingestedAt: '2026-11-05T19:30:42.754Z'
---

## Overview

In jQuery starting with 1.12.0 and before 3.5.0, 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. This problem is patched in jQuery 3.5.0.

## Affected

- `jQuery >= 1.12.0, < 3.5.0`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
