# CVE-2020-27783: lxml vulnerable to Cross-site Scripting

- Severity: Medium 6.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.98%, higher than 90% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2020-12-03T16:39:41.000Z
- Modified: 2026-06-17T03:09:38.167Z
- Also known as: GHSA-pgww-xf46-h92r, PYSEC-2020-62
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: redhat

## Description

A XSS vulnerability was discovered in python-lxml's clean module. The module's parser didn't properly imitate browsers, which caused different behaviors between the sanitizer and the user's page. A remote attacker could exploit this flaw to run arbitrary HTML/JS code.

(As written by CVE List.)

## Affected

- python-lxml: lxml-4.6.2
- lxml (PyPI): before 4.6.2; from 1.2 before 4.6.2
- lxml lxml: from 1.2 before 4.6.2
- redhat software_collections: no versions given
- redhat enterprise_linux: 8.0
- debian debian_linux: 9.0; 10.0
- fedoraproject fedora: 32; 33
- netapp snapcenter: no versions given
- oracle communications_offline_mediation_controller: 12.0.0.3.0
- oracle zfs_storage_appliance_kit: 8.8

## Every score

- CISA-ADP: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=1901633> (exploit, issue-tracking, patch, report, third-party-advisory, web)
- <https://advisory.checkmarx.net/advisory/CX-2020-4286> (exploit, advisory, third-party-advisory, web)
- <https://www.debian.org/security/2020/dsa-4810> (advisory, third-party-advisory, vendor-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2020/12/msg00028.html> (mailing-list, third-party-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TMHVKRUT22LVWNL3TB7HPSDHJT74Q3JK/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JKG67GPGTV23KADT4D4GK4RMHSO4CIQL/> (vendor-advisory)
- <https://www.oracle.com//security-alerts/cpujul2021.html> (patch, third-party-advisory, web)
- <https://security.netapp.com/advisory/ntap-20210521-0003/> (third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-27783> (advisory)
- <https://github.com/lxml/lxml/commit/a105ab8dc262ec6735977c25c13f0bdfcdec72a7> (web)
- <https://snyk.io/vuln/SNYK-PYTHON-LXML-1047473> (web)
- <https://security.netapp.com/advisory/ntap-20210521-0003> (web)
- <https://pypi.org/project/lxml> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TMHVKRUT22LVWNL3TB7HPSDHJT74Q3JK> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JKG67GPGTV23KADT4D4GK4RMHSO4CIQL> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TMHVKRUT22LVWNL3TB7HPSDHJT74Q3JK> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JKG67GPGTV23KADT4D4GK4RMHSO4CIQL> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/lxml/PYSEC-2020-62.yaml> (web)
- <https://github.com/lxml/lxml> (web)
- <https://github.com/advisories/GHSA-pgww-xf46-h92r> (advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JKG67GPGTV23KADT4D4GK4RMHSO4CIQL/> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TMHVKRUT22LVWNL3TB7HPSDHJT74Q3JK/> (web)

## Sources

- CVE List: [CVE-2020-27783](https://www.cve.org/CVERecord?id=CVE-2020-27783), CVE Terms of Use, modified 2025-12-17
- GitHub Advisory Database: [GHSA-pgww-xf46-h92r](https://github.com/advisories/GHSA-pgww-xf46-h92r), CC-BY-4.0, modified 2025-12-20
- NVD: [CVE-2020-27783](https://nvd.nist.gov/vuln/detail/CVE-2020-27783), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2020-62](https://osv.dev/vulnerability/PYSEC-2020-62), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2020-27783 · Whole record: https://cve.day/CVE-2020-27783.json · Rebuilt by cve.day 2026-11-25T22:57:56.025Z
