Vulnerability record · OpenEuler 20.03-LTS-SP1
An update for python-lxml is now available for openEuler-20.03-LTS-SP1.
OpenEuler 20.03-LTS-SP1
What it fixes
Synopsis:
python-lxml security updateSummary:
An update for python-lxml is now available for openEuler-20.03-LTS-SP1.Description:
The lxml XML toolkit is a Pythonic binding for the C libraries libxml2 and libxslt. It is unique in that it combines the speed and XML feature completeness of these libraries with the simplicity of a native Python API, mostly compatible but superior to the well-known ElementTree API. The latest release works with all CPython versions from 2.7 to 3.7.
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.(CVE-2021-28957)Topic:
An update for python-lxml is now available for openEuler-20.03-LTS-SP1.
openEuler Security has rated this update as having a security impact of medium. A Common Vunlnerability Scoring System(CVSS)base score,which gives a detailed severity rating, is available for each vulnerability from the CVElink(s) in the References section.Severity:
MediumAffected Component:
python-lxml
Manual fix · OpenEuler 20.03-LTS-SP1
sudo dnf upgrade python-lxml python-lxml-help python2-lxml python3-lxmlrpm -q python-lxml python-lxml-help python2-lxml python3-lxmlSources