CVE-2018-19787
Lxml vulnerability
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.
Affected products
Lxml, Debian Linux, Ubuntu Linux. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Lxml runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/lxml/lxml/commit/6be1d081b49c97cfd7b3fbd934a193b668629109 · Patch
- lists.debian.org/debian-lts-announce/2018/12/msg00001.html · Third Party Advisory
- usn.ubuntu.com/3841-1/ · Third Party Advisory
- usn.ubuntu.com/3841-2/ · Third Party Advisory
- lists.debian.org/debian-lts-announce/2020/11/msg00044.html
- nvd.nist.gov/vuln/detail/CVE-2018-19787
- github.com/advisories/GHSA-xp26-p53h-6h2p
- github.com/pypa/advisory-database/tree/main/vulns/lxml/PYSEC-2018-12.yaml
- nvd.nist.gov/vuln/detail/CVE-2018-19787
- cve.org/CVERecord?id=CVE-2018-19787
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.