Metadata-Version: 2.4
Name: lxml
Version: 6.2.0
Summary: Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API.
Home-page: https://lxml.de/
Author: lxml dev team
Author-email: lxml@lxml.de
Maintainer: lxml dev team
Maintainer-email: lxml@lxml.de
License: BSD-3-Clause
Project-URL: Source, https://github.com/lxml/lxml
Project-URL: Bug Tracker, https://bugs.launchpad.net/lxml
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Information Technology
Classifier: Programming Language :: Cython
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Classifier: Programming Language :: C
Classifier: Operating System :: OS Independent
Classifier: Topic :: Text Processing :: Markup :: HTML
Classifier: Topic :: Text Processing :: Markup :: XML
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.8
License-File: LICENSE.txt
License-File: LICENSES.txt
Provides-Extra: source
Provides-Extra: cssselect
Requires-Dist: cssselect>=0.7; extra == "cssselect"
Provides-Extra: html5
Requires-Dist: html5lib; extra == "html5"
Provides-Extra: htmlsoup
Requires-Dist: BeautifulSoup4; extra == "htmlsoup"
Provides-Extra: html-clean
Requires-Dist: lxml_html_clean; extra == "html-clean"
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: home-page
Dynamic: license
Dynamic: license-file
Dynamic: maintainer
Dynamic: maintainer-email
Dynamic: project-url
Dynamic: provides-extra
Dynamic: requires-python
Dynamic: summary

lxml is a Pythonic, mature binding for the libxml2 and libxslt libraries.
It provides safe and convenient access to these libraries using the
ElementTree API.

It extends the ElementTree API significantly to offer support for XPath,
RelaxNG, XML Schema, XSLT, C14N and much more.

To contact the project, go to the `project home page <https://lxml.de/>`_
or see our bug tracker at https://launchpad.net/lxml

In case you want to use the current in-development version of lxml,
you can get it from the github repository at
https://github.com/lxml/lxml .  Note that this requires Cython to
build the sources, see the build instructions on the project home page.


After an official release of a new stable series, bug fixes may become available at
https://github.com/lxml/lxml/tree/lxml-6.2 .
Running ``pip install https://github.com/lxml/lxml/archive/refs/heads/lxml-6.2.tar.gz``
will install the unreleased branch state as soon as a maintenance branch has been established.
Note that this requires Cython to be installed at an appropriate version for the build.

6.2.0 (2026-11-23)
==================

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.

* 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.

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/libxml2-2.14.6-backport1.patch
  https://github.com/lxml/lxml/blob/lxml-6.2/libxslt-1.1.43-backport1.patch
  https://github.com/lxml/libxml2-win-binaries/releases/tag/2026.11.23

* Built with Cython 3.3.1.
  Wheels for Python 3.8/3.9 use Cython 3.2.9.


