VDB
Sign up
MEDIUM6.1

PYSEC-2018-12

Quick fix

PYSEC-2018-12 — lxml: upgrade to the fixed version with the command below.

pip install --upgrade 'lxml>=6be1d081b49c97cfd7b3fbd934a193b668629109'

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/lxml
Introduced in: 0Fixed in: 6be1d081b49c97cfd7b3fbd934a193b668629109
Fixpip install --upgrade 'lxml>=6be1d081b49c97cfd7b3fbd934a193b668629109'

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:pypi/lxml"]}'