VULNERABILITY INTELLIGENCE

CVE-2021-28957

CVSS score6.1 MEDIUM
EPSS probability4.04%
CISA KEVNot currently listed
Published2021-03-21
Last modified2026-06-17
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Description

An XSS vulnerability was discovered in python-lxml's clean module versions before 4.6.3. When disabling the safe_attrs_only and forms arguments, the Cleaner class does not remove the formaction attribute allowing for JS to bypass the sanitizer. A remote attacker could exploit this flaw to run arbitrary JS code on users who interact with incorrectly sanitized HTML. This issue is patched in lxml 4.6.3.

Weakness classification

  • nvd@nist.gov: CWE-79
  • 134c704f-9b21-4f2e-91b3-4a467353bcc0: CWE-79

Primary references