CVE-2026-49825

NameCVE-2026-49825
Descriptionlxml 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
lxml (PTS)bullseye (security), bullseye4.6.3+dfsg-0.1+deb11u1vulnerable
bookworm4.9.2-1vulnerable
trixie5.4.0-1vulnerable
forky, sid6.1.0-1vulnerable
lxml-html-clean (PTS)trixie0.4.4-1~deb13u1vulnerable
forky, sid0.4.5-1vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
lxmlsource(unstable)(unfixed)
lxml-html-cleansource(unstable)(unfixed)

Notes

https://github.com/fedora-python/lxml_html_clean/security/advisories/GHSA-4jhm-jv67-739f
Fixed by: https://github.com/lxml/lxml/commit/5927a6d5e851845140975d99b65461e255caaab0 (lxml-6.1.1)
lxml-html-clean was split out of lxml in 5.2.0
Code fix in src:lxml, lxml-html-clean will require bumped dependency on lxml >= 6.1.1

Search for package or bug name: Reporting problems