Skip to content
OpenAdvisories
Medium SUSE-SU-2022:3836-1 2 CVEs

Security update for python-lxml

Published Nov 1, 2022 · Updated Feb 4, 2026

Summary

This update for python-lxml fixes the following issues:

- CVE-2021-28957: Fixed XSS due to missing input sanitization for HTML5 attributes (bsc#1184177).
- CVE-2020-27783: Fixed XSS due to the use of improper parser (bsc#1179534).

Fixed packages 1

ReleasePackageFixed in
openSUSE · Leap 15.3 python-lxml 4.0.0-150000.4.3.1

Vulnerabilities 2

  • Medium 6.1

    lxml vulnerable to Cross-site Scripting

    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…

  • Medium 6.1

    lxml vulnerable to Cross-Site Scripting

    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 attac…

References

  • report
    https://bugzilla.suse.com/1179534
  • report
    https://bugzilla.suse.com/1184177
  • web
    https://www.suse.com/security/cve/CVE-2020-27783
  • web
    https://www.suse.com/security/cve/CVE-2021-28957