Skip to content
OpenAdvisories
Medium · 6.1 Public exploit CVE-2014-3146 EUVD-2014-0033GHSA-57qw-cc2g-pv5pPYSEC-2014-9

lxml Cross-site Scripting Via Control Characters

Published May 14, 2014 · Updated Dec 17, 2025 · Assigned by redhat

Description

Incomplete blacklist vulnerability in the lxml.html.clean module in lxml before 3.3.5 allows remote attackers to conduct cross-site scripting (XSS) attacks via control characters in the link scheme to the clean_html function.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 lxml 3.3.5-1 —
Debian 13 lxml 3.3.5-1 —
Debian 12 lxml 3.3.5-1 —
Debian 7 lxml 2.3.2-1+deb7u1 DSA-2941-1
Debian 6.0 lxml 2.2.8-2+deb6u1 DLA-0009-1
ReleasePackageFixed inAdvisory
Ubuntu 14.04 LTS lxml 3.3.3-1ubuntu0.1 USN-2217-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 python-lxml +1 3.2.1-4.amzn2.0.4 ALAS2-2023-1956

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 1

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI lxml < 3.3.5 3.3.5 GHSA-57qw-cc2g-pv5p

Advisories 5

References