CVE-2026-49825

lxml: javascript: URL bypass in Cleaner via xlink:href

State
Published
Severity
8.2 High
Published
Aug 20, 2026
Updated
Aug 21, 2026
Reserved
Jun 1, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.18.2 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:NGitHub_M

Weaknesses

  • CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
  • CWE-184 Incomplete List of Disallowed Inputs

Affected Products

ProductVersions
lxmllxml
  • < 6.1.1Affected
lxml_html_cleanfedora-python
  • < 0.4.5Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.