Skip to content

Improper Neutralization of Input During Web Page Generation in LXML

Moderate severity GitHub Reviewed Published May 13, 2022 to the GitHub Advisory Database • Updated Jan 29, 2023

Package

pip lxml (pip)

Affected versions

< 4.2.5

Patched versions

4.2.5

Description

An issue was discovered in lxml before 4.2.5. lxml/html/clean.py in the lxml.html.clean module does not remove javascript: URLs that use escaping, allowing a remote attacker to conduct XSS attacks, as demonstrated by "j a v a s c r i p t:" in Internet Explorer. This is a similar issue to CVE-2014-3146.

References

Published by the National Vulnerability Database Dec 2, 2018
Published to the GitHub Advisory Database May 13, 2022
Reviewed Jun 28, 2022
Last updated Jan 29, 2023

Severity

Moderate
6.1
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Weaknesses

CVE ID

CVE-2018-19787

GHSA ID

GHSA-xp26-p53h-6h2p

Source code

Checking history
See something to contribute? Suggest improvements for this vulnerability.