HIGH7.5
PYSEC-2026-87
Quick fix
PYSEC-2026-87 — lxml: upgrade to the fixed version with the command below.
pip install --upgrade 'lxml>=6.1.0'Details
lxml is a library for processing XML and HTML in the Python language. Prior to 6.1.0, using either of the two parsers in the default configuration (with resolve_entities=True) allows untrusted XML input to read local files. Setting the resolve_entities option explicitly to resolve_entities='internal' or resolve_entities=False disables the local file access. This vulnerability is fixed in 6.1.0.
Are you affected?
Enter the version of the package you're using.