{"id":"CVE-2026-49825","published":"2026-08-20T14:42:30Z","modified":"2026-08-21T16:41:54Z","title":"lxml: javascript: URL bypass in Cleaner via xlink:href","vendor":"lxml","product":"lxml","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00297,"percentile":0.1476,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-184","name":"Incomplete List of Disallowed Inputs"}],"references":[{"url":"https://github.com/fedora-python/lxml_html_clean/security/advisories/GHSA-4jhm-jv67-739f","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/fedora-python/lxml_html_clean/commit/322357ac61c6cf80fcbaba53b4e92e31f3ded9f2","tags":["x_refsource_MISC"]},{"url":"https://github.com/lxml/lxml/commit/5927a6d5e851845140975d99b65461e255caaab0","tags":["x_refsource_MISC"]},{"url":"https://github.com/fedora-python/lxml_html_clean/releases/tag/0.4.5","tags":["x_refsource_MISC"]},{"url":"https://github.com/lxml/lxml/releases/tag/lxml-6.1.1","tags":["x_refsource_MISC"]}],"priority":{"score":8.7,"factors":[{"name":"EPSS percentile","points":2.95},{"name":"CVSS severity","points":5.74}]},"vendorSlug":"lxml","affectedVersions":[{"vendor":"lxml","product":"lxml","versions":["< 6.1.1"]},{"vendor":"fedora-python","product":"lxml_html_clean","versions":["< 0.4.5"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-21T16:41:32.043801Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"lxml_html_clean","vulnerableRanges":["<0.4.5"],"patched":["0.4.5"],"from":["GHSA-4jhm-jv67-739f","PYSEC-2026-2614"],"provenance":"source"}],"summary":{"text":"The flaw is in lxml's HTML cleaner, where the link-attribute list in lxml.html.defs.link_attrs omitted xlink:href, so the Cleaner's javascript: URL filtering was not applied to that attribute in embedded SVG, MathML and similar content. An attacker who can supply markup for the cleaner to process can use a javascript: URL in xlink:href to bypass the URL checks, which requires user interaction such as the victim viewing or clicking the resulting content.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:59:30Z"},"euvd":{"id":"EUVD-2026-63390","exploited":false,"provenance":"source"}}