GitHub Advisoryadvisory · PyPI

GHSA-pgww-xf46-h92r lxml vulnerable to Cross-site Scripting

MEDIUM Published 2021-01-07 Modified 2025-12-20 Official page ↗
Aliases
CVE-2020-27783
Ecosystem
PyPI
Packages
lxml
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weaknesses
CWE-79
Reviewed
2021-01-07

Affected packages

• PyPI lxml: < 4.6.2 → fixed in 4.6.2

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.

Related

Alias · CVE (1)

  • CVE-2020-27783 A XSS vulnerability was discovered in python-lxml's clean module. vulnerability

Weakness · CWE (1)

  • CWE-79 Improper Neutralization of Input During Web Page Generation weakness

References