Vulnerability · Published Aug 20, 2026 · Assigned by GitHub_M

CVE-2026-49825lxml: javascript: URL bypass in Cleaner via xlink:href

High 8.2

In plain English

A high-severity cross-site scripting in lxml_html_clean from fedora-python. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 22% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.2High
Exploit odds (30 days)0.3%top 77.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8python3-lxml4.2.3-5.el8_10ALSA-2026:67943
AlmaLinux:9python3-lxml4.6.5-3.el9_8.1ALSA-2026:66204
AlmaLinux:9python3.12-lxml4.9.3-2.el9_8.1ALSA-2026:66203
Debian:12lxml4.9.2-1+deb12u1DEBIAN-CVE-2026-49825
Debian:13lxmlno fix listedDEBIAN-CVE-2026-49825
Debian:14lxml6.1.3-1DEBIAN-CVE-2026-49825
Debian:13lxml-html-cleanno fix listedDEBIAN-CVE-2026-49825
Debian:14lxml-html-clean0.4.5-1DEBIAN-CVE-2026-49825
PyPIlxml-html-clean0.4.5GHSA-4jhm-jv67-739f
PyPIlxml-html-clean0.4.5PYSEC-2026-2614
Rocky Linux:8python-lxml0:4.2.3-5.el8_10RLSA-2026:67943
Rocky Linux:9python-lxml0:4.6.5-3.el9_8.1RLSA-2026:66204
Rocky Linux:9python3.12-lxml0:4.9.3-2.el9_8.1RLSA-2026:66203
Ubuntu:22.04:LTSlxml4.8.0-1ubuntu0.1USN-8897-1
Ubuntu:22.04:LTSlxml4.8.0-1ubuntu0.1UBUNTU-CVE-2026-49825
Ubuntu:24.04:LTSlxml5.2.1-1ubuntu0.2USN-8897-1
Ubuntu:24.04:LTSlxml5.2.1-1ubuntu0.2UBUNTU-CVE-2026-49825
Ubuntu:26.04:LTSlxml6.0.2-1ubuntu0.1USN-8897-1
Ubuntu:26.04:LTSlxml6.0.2-1ubuntu0.1UBUNTU-CVE-2026-49825

Affected products (as reported)

VendorProductVersions
lxml lxml < 6.1.1
fedora-python lxml_html_clean < 0.4.5

Weakness: CWE-79, CWE-184 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N

References