Description
lxml is a library for processing XML and HTML in the Python language. Prior to 6.1.1, link attributes in ``lxml.html.defs.link_attrs`` were missing ``xlink:href``, which can be used for URL bypass attacks in embedded SVG/MathML/etc. content. This vulnerability was fixed in lxml 6.1.1 and lxml_html_clean 0.4.5.
Severity (CVSS)
| Base score | 8.2 |
|---|---|
| Severity | High |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N |
| Provided by | CNA |
Weaknesses
- CWE-79 — CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
- CWE-184 — CWE-184: Incomplete List of Disallowed Inputs
Affected products
| Vendor | Product | Versions |
|---|---|---|
| lxml | lxml | < 6.1.1 |
| fedora-python | lxml_html_clean | < 0.4.5 |
References
- https://github.com/fedora-python/lxml_html_clean/security/advisories/GHSA-4jhm-jv67-739f (x_refsource_CONFIRM)
- https://github.com/fedora-python/lxml_html_clean/commit/322357ac61c6cf80fcbaba53b4e92e31f3ded9f2 (x_refsource_MISC)
- https://github.com/lxml/lxml/commit/5927a6d5e851845140975d99b65461e255caaab0 (x_refsource_MISC)
- https://github.com/fedora-python/lxml_html_clean/releases/tag/0.4.5 (x_refsource_MISC)
- https://github.com/lxml/lxml/releases/tag/lxml-6.1.1 (x_refsource_MISC)
Generated from the official CVE List on 21 Aug 2026 07:00 UTC.