ADVISORIES

Ubuntu Security Notice

USN-8897-1

lxml vulnerabilities

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)

Affected packages

EcosystemPackageAffected versions
Ubuntu:Pro:14.04:LTSlxml
All versions before 3.3.3-1ubuntu0.2+esm6 (fixed in 3.3.3-1ubuntu0.2+esm6)
Ubuntu:Pro:16.04:LTSlxml
All versions before 3.5.0-1ubuntu0.4+esm3 (fixed in 3.5.0-1ubuntu0.4+esm3)
Ubuntu:Pro:18.04:LTSlxml
All versions before 4.2.1-1ubuntu0.6+esm1 (fixed in 4.2.1-1ubuntu0.6+esm1)
Ubuntu:Pro:20.04:LTSlxml
All versions before 4.5.0-1ubuntu0.5+esm1 (fixed in 4.5.0-1ubuntu0.5+esm1)
Ubuntu:22.04:LTSlxml
All versions before 4.8.0-1ubuntu0.1 (fixed in 4.8.0-1ubuntu0.1)
Ubuntu:24.04:LTSlxml
All versions before 5.2.1-1ubuntu0.2 (fixed in 5.2.1-1ubuntu0.2)
Ubuntu:26.04:LTSlxml
All versions before 6.0.2-1ubuntu0.1 (fixed in 6.0.2-1ubuntu0.1)

References