Advisory

PYSEC-2026-87

Also known as: CVE-2026-41066, GHSA-vfmq-68hx-4jfw

Summary

The record has no summary.

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.

Severity

High Basis: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Dates

Published
2026-04-24 17:16 UTC
Modified
2026-05-20 09:19 UTC

Affected packages and fixes

lxml

PyPI · All systems

Affected

  • introduced 0, fixed 6.1.0 (ecosystem)

Fixed versions

6.1.0

Fix

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

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: PyPA Advisory Database · CC BY 4.0

Sources & licences