Skip to main content
← All vulnerabilities
CVE-2021-28957PYSEC-2021-19GHSA-JQ4V-F5Q6-MJQQ

An XSS vulnerability was discovered in python-lxml's clean module versions before 4.6.3.

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.6.3
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • n/a n/a

    Version range not reported

  • lxmlPyPI

    fixed in 4.6.3

  • lxmlPyPI

    fixed in 4.6.3

References 10

bugs.launchpad.net

GitHub · lxml/lxml

lists.debian.org

debian.org

lists.fedoraproject.org

oracle.com

security.netapp.com

security.gentoo.org