Skip to content
OpenAdvisories
Medium ALAS2-2024-2620 1 CVE

Moderate: python-lxml security update (Amazon Linux 2)

Published Aug 1, 2024 · Updated Aug 13, 2024

Summary

Package updates are available for Amazon Linux 2 that fix the following vulnerabilities: CVE-2021-28957: 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.

Fixed packages 4

ReleasePackageFixed in
Amazon Linux · 2 python-lxml 0:3.2.1-4.amzn2.0.6
Amazon Linux · 2 python-lxml-debuginfo 0:3.2.1-4.amzn2.0.6
Amazon Linux · 2 python-lxml-docs 0:3.2.1-4.amzn2.0.6
Amazon Linux · 2 python3-lxml 0:3.2.1-4.amzn2.0.6

Vulnerabilities 1

  • 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

  • web
    https://alas.aws.amazon.com/cve/html/CVE-2021-28957.html