@@ -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
2525It is important to note that modules in the :mod: `xml ` package require that
2626there be at least one SAX-compliant XML parser available. The Expat parser is
@@ -113,9 +113,9 @@ decompression bomb
113113The documentation for `defusedxml `_ on PyPI has further information about
114114all 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
124124package also ships with example exploits and extended documentation on more
125125XML 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