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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.1
- **CVSS:** 6.1 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Changed (impact reaches other components); Confidentiality impact: Low; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 6.30% (percentile 94, 2026-11-26)
- **CWE:** CWE-79
- **Aliases:** EDB-39155, GHSA-57qw-cc2g-pv5p, PYSEC-2014-9
- **Published:** 2014-04-15T00:00:00.000Z
- **Modified:** 2026-06-17T00:07:40.070Z

## Who should check

- Projects that depend on PyPI package lxml (\< 3.3.5)
- Anyone running n/a (versions: see the vendor advisory)

## 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.

## Affected and fixed versions

- PyPI `lxml`: affected \< 3.3.5; fixed 3.3.5 (osv)
- n/a: see vendor advisory (nvd)

## Mitigation

- Upgrade lxml to 3.3.5 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2014-3146. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2014-3146.md
Affected: lxml < 3.3.5
Fixed in: 3.3.5

Steps:
1. Search this machine and project for lxml (PyPI), n/a: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2014-3146 being exploited?

There is no confirmed exploitation: CVE-2014-3146 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 6.30% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2014-3146?

Medium: CVSS 6.1 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2014-3146?

lxml \< 3.3.5.

### Is there a fix for CVE-2014-3146?

Yes. Fixed in 3.3.5. Upgrade lxml to 3.3.5 or later.

### How do I check if I'm affected by CVE-2014-3146?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <http://www.debian.org/security/2014/dsa-2941>
- vendor: <http://www.ubuntu.com/usn/USN-2217-1>
- vendor: <http://secunia.com/advisories/58744>
- vendor: <http://advisories.mageia.org/MGASA-2014-0218.html>
- vendor: <http://www.mandriva.com/security/advisories?name=MDVSA-2015:112>
- vendor: <http://secunia.com/advisories/58013>
- vendor: <http://secunia.com/advisories/59008>
- vendor: <http://lists.opensuse.org/opensuse-updates/2014-05/msg00083.html>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2014-3146>
- vendor: <https://github.com/advisories/GHSA-57qw-cc2g-pv5p>
- patch: <https://github.com/lxml/lxml/pull/273>
- patch: <https://github.com/lxml/lxml/commit/3f3082e0a67851cde26a48da3d1f4b75d8aa07ec>
- patch: <https://github.com/lxml/lxml/commit/86e81ab393ba14c1be71284675851a3bdce57d69>
- patch: <https://github.com/lxml/lxml/commit/e86b294f1f81b899a59925123560ff924a72f1cc>
- exploit: <https://mailman-mail5.webfaction.com/pipermail/lxml/2014-April/007128.html>
- exploit: <http://www.securityfocus.com/bid/67159>
- exploit: <http://seclists.org/fulldisclosure/2014/Apr/319>
- exploit: <https://www.exploit-db.com/exploits/39155>
- other: <http://lxml.de/3.3/changes-3.3.5.html>
- other: <http://www.openwall.com/lists/oss-security/2014/05/09/7>
- other: <http://seclists.org/fulldisclosure/2014/Apr/210>
- other: <https://github.com/lxml/lxml>
- other: <https://github.com/pypa/advisory-database/tree/main/vulns/lxml/PYSEC-2014-9.yaml>
- other: <https://web.archive.org/web/20140724172044/http://secunia.com/advisories/58013>
- other: <https://web.archive.org/web/20140805110535/http://secunia.com/advisories/59008>
- other: <https://web.archive.org/web/20140806061046/http://secunia.com/advisories/58744>
- other: <https://web.archive.org/web/20141017122607/https://mailman-mail5.webfaction.com/pipermail/lxml/2014-April/007128.html>
- other: <https://web.archive.org/web/20150523055039/http://www.mandriva.com/en/support/security/advisories/advisory/MDVSA-2015:112/?name=MDVSA-2015:112>
- other: <https://web.archive.org/web/20200228180542/http://www.securityfocus.com/bid/67159>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2014-3146>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-57qw-cc2g-pv5p> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2014-9> (license: <https://creativecommons.org/licenses/by/4.0/>)
- Exploit-DB: Exploit metadata (ID and link only) from the Exploit Database <https://www.exploit-db.com/exploits/39155>

HTML: <https://flawdb.com/CVE-2014-3146> · JSON: <https://flawdb.com/api/v1/entries/CVE-2014-3146>
