# CVE-2014-3146: lxml Cross-site Scripting Via Control Characters

Source: https://junglewise.ai/threats/cve-2014-3146-lxml-cross-site-scripting-via-control-characters  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2014-05-14  
License: CC BY 4.0 with a link back

CVE-2014-3146 · Severity: low · CVSS 3.1 · Published 2014-05-14

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.

Technologies: [lxml (PyPI)](https://junglewise.ai/threats/technologies/lxml). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2014-3146 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2014-3146 being exploited in the wild.

**How severe is CVE-2014-3146?** Low severity, with a CVSS score of 3.1, published 14 May 2014.

**Which products and versions are affected?** lxml (PyPI) ECOSYSTEM:introduced=0,fixed=3.3.5.

**Is there a fix for CVE-2014-3146?** Yes. lxml (PyPI): upgrade to 3.3.5 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2014-3146?** Check whether you run lxml (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- lxml (PyPI): upgrade to 3.3.5 or later

  ```sh
  pip install "lxml>=3.3.5"
  ```


## Affected products

- lxml (PyPI) ECOSYSTEM:introduced=0,fixed=3.3.5

## Identifiers

- CVE-2014-3146
- GHSA-57qw-cc2g-pv5p
- PYSEC-2014-9

## Related threats

- [lxml XXE in iterparse and ETCompatXMLParser](https://junglewise.ai/threats/cve-2026-41066-lxml-xxe-in-iterparse-and-etcompatxmlparser)
- [lxml NULL Pointer Dereference allows attackers to cause a denial of service](https://junglewise.ai/threats/cve-2022-2309-lxml-null-pointer-dereference-allows-attackers-to-cause-a-denial)
- [lxml's HTML Cleaner allows crafted and SVG embedded scripts to pass through](https://junglewise.ai/threats/cve-2021-43818-lxml-s-html-cleaner-allows-crafted-and-svg-embedded-scripts-to)
- [lxml vulnerable to Cross-Site Scripting](https://junglewise.ai/threats/cve-2021-28957-lxml-vulnerable-to-cross-site-scripting)
- [lxml vulnerable to Cross-site Scripting](https://junglewise.ai/threats/cve-2020-27783-lxml-vulnerable-to-cross-site-scripting)
