Home / mailingsPDF  

[USN-8897-1] lxml vulnerabilities

Posted on 08 October 2026
Ubuntu Security

==========================================================================Ubuntu Security Notice USN-8897-1
October 07, 2026

lxml vulnerabilities
==========================================================================
A security issue affects these releases of Ubuntu and its derivatives:

- Ubuntu 26.04 LTS
- Ubuntu 24.04 LTS
- Ubuntu 22.04 LTS
- Ubuntu 20.04 LTS
- Ubuntu 18.04 LTS
- Ubuntu 16.04 LTS
- Ubuntu 14.04 LTS

Summary:

Several security issues were fixed in lxml.

Software Description:
- lxml: pythonic binding for the libxml2 and libxslt libraries

Details:

Guillem Lefait discovered that lxml incorrectly handled certain URL
attributes. A remote attacker could possibly use this issue to bypass
URL sanitization, leading to a cross-site scripting attack.
(CVE-2026-49825)

Qiu Sihao discovered that lxml incorrectly handled untrusted XML input.
A remote attacker could possibly use this issue to read local files and
expose sensitive information. This issue was only addressed in Ubuntu 24.04
LTS and Ubuntu 26.04 LTS. (CVE-2026-41066)

Update instructions:

The problem can be corrected by updating your system to the following
package versions:

Ubuntu 26.04 LTS
python3-lxml 6.0.2-1ubuntu0.1

Ubuntu 24.04 LTS
python3-lxml 5.2.1-1ubuntu0.2

Ubuntu 22.04 LTS
python3-lxml 4.8.0-1ubuntu0.1

Ubuntu 20.04 LTS
python-lxml 4.5.0-1ubuntu0.5+esm1
Available with Ubuntu Pro
python3-lxml 4.5.0-1ubuntu0.5+esm1
Available with Ubuntu Pro

Ubuntu 18.04 LTS
python-lxml 4.2.1-1ubuntu0.6+esm1
Available with Ubuntu Pro
python3-lxml 4.2.1-1ubuntu0.6+esm1
Available with Ubuntu Pro

Ubuntu 16.04 LTS
python-lxml 3.5.0-1ubuntu0.4+esm3
Available with Ubuntu Pro
python3-lxml 3.5.0-1ubuntu0.4+esm3
Available with Ubuntu Pro

Ubuntu 14.04 LTS
python-lxml 3.3.3-1ubuntu0.2+esm6
Available with Ubuntu Pro
python3-lxml 3.3.3-1ubuntu0.2+esm6
Available with Ubuntu Pro

In general, a standard system update will make all the necessary changes.

References:
https://ubuntu.com/security/notices/USN-8897-1
CVE-2026-41066, CVE-2026-49825

Package Information:
https://launchpad.net/ubuntu/+source/lxml/6.0.2-1ubuntu0.1
https://launchpad.net/ubuntu/+source/lxml/5.2.1-1ubuntu0.2
https://launchpad.net/ubuntu/+source/lxml/4.8.0-1ubuntu0.1

--===============2372629236873159713==Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature

 

TOP