Advisory

GHSA-xp26-p53h-6h2p

Also known as: CVE-2018-19787, PYSEC-2018-12

Summary

Improper Neutralization of Input During Web Page Generation in LXML

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-05-13 01:13 UTC
Modified
2025-12-20 05:59 UTC

Affected packages and fixes

lxml

PyPI · All systems

Affected

  • introduced 0, fixed 4.2.5 (ecosystem)

Fixed versions

4.2.5

Fix

  • Fixed version 4.2.5
    pip install --upgrade lxml==4.2.5

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences