CVE-2020-27783
MEDIUM 6.1CVSS 3.1lxml vulnerable to Cross-site Scripting
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.
- Published
- 3 Dec 2020
- Last modified
- 17 Jun 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-pgww-xf46-h92rPYSEC-2020-62
- Sources
- NVDJSONOSV GHSA-pgww-xf46-h92rJSONOSV PYSEC-2020-62JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | lxml | lxmlcpe:2.3:a:lxml:lxml:*:*:*:*:*:*:*:* |
>= 1.2, < 4.6.2 | 4.6.2 |
| NVD | redhat | software_collectionscpe:2.3:a:redhat:software_collections:-:*:*:*:*:*:*:* |
(no version) | |
| NVD | redhat | enterprise_linuxcpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:* |
= 8.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
= 10.0 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:* |
= 32 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:* |
= 33 | |
| NVD | netapp | snapcentercpe:2.3:a:netapp:snapcenter:-:*:*:*:*:*:*:* |
(no version) | |
| NVD | oracle | communications_offline_mediation_controllercpe:2.3:a:oracle:communications_offline_mediation_controller:12.0.0.3.0:*:*:*:*:*:*:* |
= 12.0.0.3.0 | |
| NVD | oracle | zfs_storage_appliance_kitcpe:2.3:a:oracle:zfs_storage_appliance_kit:8.8:*:*:*:*:*:*:* |
= 8.8 | |
| OSV | PyPI | lxml | < 4.6.2 | 4.6.2 |
| OSV | PyPI | lxml | >= 1.2, < 4.6.2 | 4.6.2 |
References
- https://advisory.checkmarx.net/advisory/CX-2020-4286 · Exploit, Third Party Advisory, WEB, ADVISORY
- https://bugzilla.redhat.com/show_bug.cgi?id=1901633 · Exploit, Issue Tracking, Patch, Third Party Advisory, WEB, REPORT
- 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/JKG67GPGTV23KADT4D4GK4RMHSO4CIQL/ · WEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TMHVKRUT22LVWNL3TB7HPSDHJT74Q3JK/ · WEB
- https://security.netapp.com/advisory/ntap-20210521-0003/ · Third Party Advisory, WEB
- https://www.debian.org/security/2020/dsa-4810 · Third Party Advisory, WEB, ADVISORY
- https://www.oracle.com//security-alerts/cpujul2021.html · Patch, Third Party Advisory, WEB
- 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://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://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
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 3 Dec 2020)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 3 Dec 2020)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jan 2021)