Advisory

GHSA-pgww-xf46-h92r

Also known as: CVE-2020-27783, PYSEC-2020-62

Summary

lxml vulnerable to Cross-site Scripting

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-01-07 21:54 UTC
Modified
2025-12-20 05:25 UTC

Affected packages and fixes

lxml

PyPI · All systems

Affected

  • introduced 0, fixed 4.6.2 (ecosystem)

Fixed versions

4.6.2

Fix

  • Fixed version 4.6.2
    pip install --upgrade lxml==4.6.2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences