Skip to content

Commit 51b84f8

Browse files
authored
bpo-38585: Remove references to defusedexpat (GH-22095)
defusedexpat is not maintained.
1 parent 84a7917 commit 51b84f8

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

Doc/library/xml.rst

+3-11
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Python's interfaces for processing XML are grouped in the ``xml`` package.
2020
The XML modules are not secure against erroneous or maliciously
2121
constructed data. If you need to parse untrusted or
2222
unauthenticated data see the :ref:`xml-vulnerabilities` and
23-
:ref:`defused-packages` sections.
23+
:ref:`defusedxml-package` sections.
2424

2525
It is important to note that modules in the :mod:`xml` package require that
2626
there be at least one SAX-compliant XML parser available. The Expat parser is
@@ -113,9 +113,9 @@ decompression bomb
113113
The documentation for `defusedxml`_ on PyPI has further information about
114114
all known attack vectors with examples and references.
115115

116-
.. _defused-packages:
116+
.. _defusedxml-package:
117117

118-
The :mod:`defusedxml` and :mod:`defusedexpat` Packages
118+
The :mod:`defusedxml` Package
119119
------------------------------------------------------
120120

121121
`defusedxml`_ is a pure Python package with modified subclasses of all stdlib
@@ -124,16 +124,8 @@ package is recommended for any server code that parses untrusted XML data. The
124124
package also ships with example exploits and extended documentation on more
125125
XML exploits such as XPath injection.
126126

127-
`defusedexpat`_ provides a modified libexpat and a patched
128-
:mod:`pyexpat` module that have countermeasures against entity expansion
129-
DoS attacks. The :mod:`defusedexpat` module still allows a sane and configurable amount of entity
130-
expansions. The modifications may be included in some future release of Python,
131-
but will not be included in any bugfix releases of
132-
Python because they break backward compatibility.
133-
134127

135128
.. _defusedxml: https://pypi.org/project/defusedxml/
136-
.. _defusedexpat: https://pypi.org/project/defusedexpat/
137129
.. _Billion Laughs: https://en.wikipedia.org/wiki/Billion_laughs
138130
.. _ZIP bomb: https://en.wikipedia.org/wiki/Zip_bomb
139131
.. _DTD: https://en.wikipedia.org/wiki/Document_type_definition

0 commit comments

Comments
 (0)