CVE Database›Document archive›CVE-2026-49825

CVE-2026-49825

lxml: lxml-html-clean: lxml: URL bypass vulnerability in Cleaner via missing xlink:href

Loading…

Severity

Important

Red Hat Product Security

8.2

CVSS 3.1

Review impact separately from score.

Published · August 20, 2026

Updated · October 31, 2026

Description

A flaw was found in lxml, a library for processing XML and HTML in Python. The lxml.html.defs.link_attrs were missing xlink:href, which could allow an attacker to bypass URL filtering mechanisms. This vulnerability enables URL bypass attacks in embedded content such as Scalable Vector Graphics (SVG) or Mathematical Markup Language (MathML), potentially leading to information disclosure or arbitrary code execution in the context of the user's browser.

Statement

This vulnerability is rated as an Important severity for Red Hat products because an unauthenticated remote attacker could inject malicious script schemes into rendered markup, resulting in cross-site scripting and potential session hijacking in the victim's browser. Exploitation requires an application to process untrusted user input using the HTML cleaner utility configured with non-default, relaxed attribute filtering. Under default library configurations where strict attribute allowlists are enforced, the relevant hyperlink attributes are stripped automatically before link scheme validation occurs.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CVSS 3.1 · 8.2
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N

CWE-166 · Improper Handling of Missing Special Element