Search for packages
Package details: pkg:pypi/lxml@1.3.5
purl pkg:pypi/lxml@1.3.5
Next non-vulnerable version 4.9.1
Latest non-vulnerable version 4.9.1
Risk 10.0
Vulnerabilities affecting this package (6)
Vulnerability Summary Fixed by
VCID-6tqt-q9px-1ka6
Aliases:
CVE-2021-43818
GHSA-55x5-fj6c-h6m8
PYSEC-2021-852
lxml is a library for processing XML and HTML in the Python language. Prior to version 4.6.5, the HTML Cleaner in lxml.html lets certain crafted script content pass through, as well as script content in SVG files embedded using data URIs. Users that employ the HTML cleaner in a security relevant context should upgrade to lxml 4.6.5 to receive a patch. There are no known workarounds available.
4.6.5
Affected by 1 other vulnerability.
VCID-74e9-wcve-r3bg
Aliases:
CVE-2014-3146
GHSA-57qw-cc2g-pv5p
PYSEC-2014-9
Incomplete blacklist vulnerability in the lxml.html.clean module in lxml before 3.3.5 allows remote attackers to conduct cross-site scripting (XSS) attacks via control characters in the link scheme to the clean_html function.
3.3.5
Affected by 5 other vulnerabilities.
VCID-9ym4-6av7-aqe3
Aliases:
CVE-2022-2309
GHSA-wrxv-2j5q-m38w
PYSEC-2022-230
NULL Pointer Dereference allows attackers to cause a denial of service (or application crash). This only applies when lxml is used together with libxml2 2.9.10 through 2.9.14. libxml2 2.9.9 and earlier are not affected. It allows triggering crashes through forged input data, given a vulnerable code sequence in the application. The vulnerability is caused by the iterwalk function (also used by the canonicalize function). Such code shouldn't be in wide-spread use, given that parsing + iterwalk would usually be replaced with the more efficient iterparse function. However, an XML converter that serialises to C14N would also be vulnerable, for example, and there are legitimate use cases for this code sequence. If untrusted input is received (also remotely) and processed via iterwalk function, a crash can be triggered.
4.9.1
Affected by 0 other vulnerabilities.
VCID-fy7w-e8zj-hyas
Aliases:
CVE-2021-28957
GHSA-jq4v-f5q6-mjqq
PYSEC-2021-19
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.
4.6.3
Affected by 2 other vulnerabilities.
VCID-kk16-5uu2-puc2
Aliases:
CVE-2020-27783
GHSA-pgww-xf46-h92r
PYSEC-2020-62
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.
4.6.2
Affected by 3 other vulnerabilities.
VCID-m978-e1qe-syek
Aliases:
CVE-2018-19787
GHSA-xp26-p53h-6h2p
PYSEC-2018-12
An issue was discovered in lxml before 4.2.5. lxml/html/clean.py in the lxml.html.clean module does not remove javascript: URLs that use escaping, allowing a remote attacker to conduct XSS attacks, as demonstrated by "j a v a s c r i p t:" in Internet Explorer. This is a similar issue to CVE-2014-3146.
4.2.5
Affected by 4 other vulnerabilities.
Vulnerabilities fixed by this package (0)
Vulnerability Summary Aliases
This package is not known to fix vulnerabilities.

Date Actor Action Vulnerability Source VulnerableCode Version
2025-08-01T10:41:54.845920+00:00 GitLab Importer Affected by VCID-9ym4-6av7-aqe3 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/lxml/CVE-2022-2309.yml 37.0.0
2025-08-01T10:28:14.481250+00:00 GitLab Importer Affected by VCID-74e9-wcve-r3bg https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/lxml/CVE-2014-3146.yml 37.0.0
2025-08-01T10:23:11.769906+00:00 GitLab Importer Affected by VCID-m978-e1qe-syek https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/lxml/CVE-2018-19787.yml 37.0.0
2025-08-01T10:08:27.747567+00:00 GitLab Importer Affected by VCID-6tqt-q9px-1ka6 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/lxml/CVE-2021-43818.yml 37.0.0
2025-08-01T09:50:16.870026+00:00 GitLab Importer Affected by VCID-fy7w-e8zj-hyas https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/lxml/CVE-2021-28957.yml 37.0.0
2025-08-01T09:46:55.317971+00:00 GitLab Importer Affected by VCID-kk16-5uu2-puc2 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/lxml/CVE-2020-27783.yml 37.0.0
2025-08-01T09:09:39.875929+00:00 GHSA Importer Affected by VCID-9ym4-6av7-aqe3 https://github.com/advisories/GHSA-wrxv-2j5q-m38w 37.0.0
2025-08-01T08:49:22.728332+00:00 PyPI Importer Affected by VCID-9ym4-6av7-aqe3 https://osv-vulnerabilities.storage.googleapis.com/PyPI/all.zip 37.0.0
2025-08-01T08:49:15.293143+00:00 GHSA Importer Affected by VCID-m978-e1qe-syek https://github.com/advisories/GHSA-xp26-p53h-6h2p 37.0.0
2025-08-01T08:39:37.329550+00:00 PyPI Importer Affected by VCID-fy7w-e8zj-hyas https://osv-vulnerabilities.storage.googleapis.com/PyPI/all.zip 37.0.0
2025-08-01T08:37:21.971903+00:00 PyPI Importer Affected by VCID-kk16-5uu2-puc2 https://osv-vulnerabilities.storage.googleapis.com/PyPI/all.zip 37.0.0
2025-08-01T08:34:07.237750+00:00 PyPI Importer Affected by VCID-m978-e1qe-syek https://osv-vulnerabilities.storage.googleapis.com/PyPI/all.zip 37.0.0
2025-08-01T08:32:07.675188+00:00 PyPI Importer Affected by VCID-74e9-wcve-r3bg https://osv-vulnerabilities.storage.googleapis.com/PyPI/all.zip 37.0.0
2025-08-01T08:25:57.294960+00:00 GHSA Importer Affected by VCID-fy7w-e8zj-hyas https://github.com/advisories/GHSA-jq4v-f5q6-mjqq 37.0.0
2025-08-01T08:24:56.894826+00:00 GHSA Importer Affected by VCID-kk16-5uu2-puc2 https://github.com/advisories/GHSA-pgww-xf46-h92r 37.0.0
2025-07-31T08:20:45.261417+00:00 Pypa Importer Affected by VCID-9ym4-6av7-aqe3 https://github.com/pypa/advisory-database/blob/main/vulns/lxml/PYSEC-2022-230.yaml 37.0.0
2025-07-31T08:19:10.561146+00:00 Pypa Importer Affected by VCID-6tqt-q9px-1ka6 https://github.com/pypa/advisory-database/blob/main/vulns/lxml/PYSEC-2021-852.yaml 37.0.0
2025-07-31T08:11:22.169617+00:00 Pypa Importer Affected by VCID-fy7w-e8zj-hyas https://github.com/pypa/advisory-database/blob/main/vulns/lxml/PYSEC-2021-19.yaml 37.0.0
2025-07-31T08:10:24.331123+00:00 Pypa Importer Affected by VCID-kk16-5uu2-puc2 https://github.com/pypa/advisory-database/blob/main/vulns/lxml/PYSEC-2020-62.yaml 37.0.0
2025-07-31T08:07:20.261814+00:00 Pypa Importer Affected by VCID-m978-e1qe-syek https://github.com/pypa/advisory-database/blob/main/vulns/lxml/PYSEC-2018-12.yaml 37.0.0
2025-07-31T08:05:05.848817+00:00 Pypa Importer Affected by VCID-74e9-wcve-r3bg https://github.com/pypa/advisory-database/blob/main/vulns/lxml/PYSEC-2014-9.yaml 37.0.0