CVE-2020-27783Lxml
Medium 6.1 No auth needed
Follow: this CVE · Lxml · Lxml We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.1
- 6.1
- EPSS
- 4.0% probability of exploitation in 30 days · percentile 91
- Auth required
- No
- Published
- Dec 3, 2020
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Lxml.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | lxml |
< 4.6.2 |
4.6.2 |
pip install "lxml>=4.6.2" |
| PyPI | lxml |
≥ 1.2 < 4.6.2 |
4.6.2 |
pip install "lxml>=4.6.2" |
Per OSV / GitHub Advisories (GHSA-pgww-xf46-h92r, PYSEC-2020-62). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| lxml | lxml | ≥ 1.2 < 4.6.2 |
| redhat | software_collections | all |
| redhat | enterprise_linux | 8.0 |
| debian | debian_linux | 9.0 |
| debian | debian_linux | 10.0 |
| fedoraproject | fedora | 32 |
| fedoraproject | fedora | 33 |
| netapp | snapcenter | all |
| oracle | communications_offline_mediation_controller | 12.0.0.3.0 |
| oracle | zfs_storage_appliance_kit | 8.8 |
Official sources
References
Links published by the sources. Open them with care.
- advisory.checkmarx.net Exploit Third Party Advisory
- bugzilla.redhat.com Exploit Issue Tracking Patch
- lists.debian.org Mailing List Third Party Advisory
- lists.fedoraproject.org
- lists.fedoraproject.org
- security.netapp.com Third Party Advisory
- www.debian.org Third Party Advisory
- www.oracle.com Patch Third Party Advisory