Sourced from lxml's changelog.
6.1.0 (2026-04-17)
This release fixes a possible external entity injection (XXE) vulnerability in
iterparse()and theETCompatXMLParser.Features added
GH#486: The HTML ARIA accessibility attributes were added to the set of safe attributes in
lxml.html.defs. This allowslxml_html_cleanto pass them through. Patch by oomsveta.The default chunk size for reading from file-likes in
iterparse()is now configurable with a newchunk_sizeargument.Bugs fixed
- LP#2146291: The
resolve_entitiesoption was still set toTrueforiterparseandETCompatXMLParser, allowing for external entity injection (XXE) when using these parsers without setting this option explicitly. The default was now changed to'internal'only (as for the normal XML and HTML parsers since lxml 5.0). Issue found by Sihao Qiu as CVE-2026-41066.6.0.4 (2026-04-12)
Bugs fixed
- LP#2148019: Spurious MemoryError during namespace cleanup.
6.0.3 (2026-04-09)
Bugs fixed
Several out of memory error cases now raise
MemoryErrorthat were not handled before.Slicing with large step values (outside of
+/- sys.maxsize) could trigger undefined C behaviour.LP#2125399: Some failing tests were fixed or disabled in PyPy.
LP#2138421: Memory leak in error cases when setting the
public_idorsystem_urlof a document.
... (truncated)
43722f4
Update changelog.8747040
Name version of option change in docstring.6c36e6c
Fix pypistats URL in download statistics script.c7d76d6
Change security policy to point to Github security advisories.378ccf8
Update project income report.315270b
Docs: Reduce TOC depth of package pages and move module contents
first.6dbba7f
Docs: Show current year in copyright line.e4385bf
Update project income report.5bed1e1
Validate file hashes in release download script.c13ee10
Prepare release of 6.1.0.