Opened 2 hours ago
Last modified 2 hours ago
#24366 new enhancement
lxml-6.2.0
| Reported by: | Joe Locash | Owned by: | SecurityAdvisory |
|---|---|---|---|
| Priority: | high | Milestone: | 98-Security |
| Component: | BOOK | Version: | git |
| Severity: | high | Keywords: | |
| Cc: |
Description
New minor release with security fixes.
6.2.0 (2026-11-27) ================== This release contains several security fixes. Upgrading is recommended. Bugs fixed ---------- * GHSA-23p9-v872-36p9: Passing ``CDATA()`` wrapped content ending with a bare ``]`` character into an ``xmlfile`` reads arbitrary data from the Python heap and includes it in the generated XML document. This allows reading random content from the application memory and/or crashing the application. Issue found by shaggitza. * GHSA-59qx-3jjv-x996: Parsing a document defining a non-wellformed entity with the default configuration of ``iterparse()`` could crash the application. This issue is network exploitable if the application parses untrusted documents from remote sites. Issue found by Claude and Ada Logics. * GHSA-27mw-m39x-fm32: Comments and PIs from the internal/external DTD subsets were reported through the SAX/target-parser and iterparse/pull parser interfaces which could lead to internal memory corruption and crashes. They are no longer reported. Issue found by Claude and Ada Logics. * GH#550: The output of ``htmldiff()`` could contain unescaped links, allowing for content injection. Patch by Nayana-Naik73. * LP#2011542: A processing instruction after the root element crashed ``lxml.sax.ElementTreeContentHandler`` with ``IndexError``. It is now kept as following sibling. Patch by cherith. * LP#2175761: Resolvers that returned a string with a ``base_url`` leaked a copy of the URL with libxml2 2.14 and later. Patch by Pierre-Yves Le Borgne. * GH#546: ``lxml.html.diff`` is a bit more stable on PyPy. Patch by Matti Picus. * The souppoarser did not immediately close the file after parsing if it opened it. * The parallel ``make`` execution during library build could fail when it tries to request more CPUs than available. * LP#2175761: The C code that Cython generates for ``lxml.etree`` no longer depends on ``PYTHONHASHSEED``. The exact C types that Cython inferred for some untyped variables was not deterministic. It is now statically declared. Patch by Pierre-Yves Le Borgne. Other changes ------------- * The binary wheels include several security relevant bug fixes for libxml2 on all platforms. https://github.com/lxml/lxml/blob/lxml-6.2.0/libxml2-2.14.6-backport1.patch https://github.com/lxml/lxml/blob/lxml-6.2.0/libxslt-1.1.43-backport1.patch https://github.com/lxml/libxml2-win-binaries/releases/tag/2026.11.23 * Built with Cython 3.3.2. Wheels for Python 3.8/3.9 use Cython 3.2.9.
Change History (1)
comment:1 by , 2 hours ago
| Milestone: | 13.2 → 98-Security |
|---|---|
| Owner: | changed from to |
| Status: | assigned → new |
Note:
See TracTickets
for help on using tickets.

Fixed at e55ea12484. Leaving open for SA.