CVE-2018-19787: XSS

Published Dec 2, 2018
·
Updated

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.

Other sources

lxml is vulnerable to cross-site scripting, caused by improper validation of user-supplied input by the lxml/html/clean.py script. A remote attacker could exploit this vulnerability to inject malicious script into a Web page which would be executed in a victim's Web browser within the security context of the hosting Web site, once the page is viewed. An attacker could use this vulnerability to steal the victim's cookie-based authentication credentials.

IBM

Affected Software

9 affected componentsFixes available
debian/lxml
4.6.3+dfsg-0.1+deb11u14.9.2-15.3.0-1
pip/lxml<4.2.5
4.2.5
IBM QRadar SIEM<=7.5 - 7.5.0 UP8 IF01
lxml lxml<4.2.5
Debian Debian Linux=8.0
Canonical Ubuntu Linux=12.04
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=18.04

Event History

Dec 2, 2018
CVE Published
via MITRE·10:00 AM
Data Sourced
via MITRE·10:00 AM
Description
Data Sourced
via NVD·10:29 AM
RemedyDescriptionSeverityWeaknessAffected Software
May 13, 2022
Advisory Published
via GitHub·01:13 AM
Jan 11, 2024
Data Sourced
via Launchpad·10:58 PM
Description
Sep 14, 2024
Data Sourced
via Ubuntu·11:57 AM
RemedyDescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the vulnerability ID?

The vulnerability ID is CVE-2018-19787.

2

What is the severity of CVE-2018-19787?

The severity of CVE-2018-19787 is medium with a severity value of 6.1.

3

What is the affected software?

The affected software is lxml before version 4.2.5.

4

How can I fix the vulnerability in lxml?

To fix the vulnerability in lxml, update to version 4.2.5 or a higher version.

5

Where can I find more information about CVE-2018-19787?

You can find more information about CVE-2018-19787 on the MITRE CVE database: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-19787

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203