Live threats

All CVEs / Lxml

CVE-2020-27783Lxml

Medium 6.1 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Lxml.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
lxmllxml≥ 1.2 < 4.6.2
redhatsoftware_collectionsall
redhatenterprise_linux8.0
debiandebian_linux9.0
debiandebian_linux10.0
fedoraprojectfedora32
fedoraprojectfedora33
netappsnapcenterall
oraclecommunications_offline_mediation_controller12.0.0.3.0
oraclezfs_storage_appliance_kit8.8

Official sources

References

Links published by the sources. Open them with care.