OESA-2021-1068

Source
https://www.openeuler.org/en/security/security-bulletins/detail/?id=openEuler-SA-2021-1068
Import Source
https://repo.openeuler.org/security/data/osv/OESA-2021-1068.json
JSON Data
https://api.test.osv.dev/v1/vulns/OESA-2021-1068
Upstream
Published
2021-03-05T11:02:40Z
Modified
2025-08-12T05:06:08.552607Z
Summary
python-lxml security update
Details

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.

Security Fix(es):

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/JS code.(CVE-2020-27783)

Database specific
{
    "severity": "Medium"
}
References

Affected packages

openEuler:20.03-LTS / python-lxml

Package

Name
python-lxml
Purl
pkg:rpm/openEuler/python-lxml&distro=openEuler-20.03-LTS

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.5.2-2.oe1

Ecosystem specific

{
    "noarch": [
        "python-lxml-help-4.5.2-2.oe1.noarch.rpm",
        "python-lxml-help-4.5.2-2.oe1.noarch.rpm"
    ],
    "aarch64": [
        "python-lxml-debugsource-4.5.2-2.oe1.aarch64.rpm",
        "python2-lxml-4.5.2-2.oe1.aarch64.rpm",
        "python-lxml-debuginfo-4.5.2-2.oe1.aarch64.rpm",
        "python3-lxml-4.5.2-2.oe1.aarch64.rpm",
        "python-lxml-debugsource-4.5.2-2.oe1.aarch64.rpm",
        "python2-lxml-4.5.2-2.oe1.aarch64.rpm",
        "python-lxml-debuginfo-4.5.2-2.oe1.aarch64.rpm",
        "python3-lxml-4.5.2-2.oe1.aarch64.rpm"
    ],
    "x86_64": [
        "python-lxml-debugsource-4.5.2-2.oe1.x86_64.rpm",
        "python-lxml-debuginfo-4.5.2-2.oe1.x86_64.rpm",
        "python3-lxml-4.5.2-2.oe1.x86_64.rpm",
        "python2-lxml-4.5.2-2.oe1.x86_64.rpm",
        "python-lxml-debugsource-4.5.2-2.oe1.x86_64.rpm",
        "python-lxml-debuginfo-4.5.2-2.oe1.x86_64.rpm",
        "python3-lxml-4.5.2-2.oe1.x86_64.rpm",
        "python2-lxml-4.5.2-2.oe1.x86_64.rpm"
    ],
    "src": [
        "python-lxml-4.5.2-2.oe1.src.rpm",
        "python-lxml-4.5.2-2.oe1.src.rpm"
    ]
}

openEuler:20.03-LTS-SP1 / python-lxml

Package

Name
python-lxml
Purl
pkg:rpm/openEuler/python-lxml&distro=openEuler-20.03-LTS-SP1

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.5.2-2.oe1

Ecosystem specific

{
    "noarch": [
        "python-lxml-help-4.5.2-2.oe1.noarch.rpm"
    ],
    "aarch64": [
        "python-lxml-debugsource-4.5.2-2.oe1.aarch64.rpm",
        "python2-lxml-4.5.2-2.oe1.aarch64.rpm",
        "python-lxml-debuginfo-4.5.2-2.oe1.aarch64.rpm",
        "python3-lxml-4.5.2-2.oe1.aarch64.rpm"
    ],
    "x86_64": [
        "python-lxml-debugsource-4.5.2-2.oe1.x86_64.rpm",
        "python-lxml-debuginfo-4.5.2-2.oe1.x86_64.rpm",
        "python3-lxml-4.5.2-2.oe1.x86_64.rpm",
        "python2-lxml-4.5.2-2.oe1.x86_64.rpm"
    ],
    "src": [
        "python-lxml-4.5.2-2.oe1.src.rpm"
    ]
}