@@ -20,7 +20,7 @@ Python's interfaces for processing XML are grouped in the ``xml`` package.
20
20
The XML modules are not secure against erroneous or maliciously
21
21
constructed data. If you need to parse untrusted or
22
22
unauthenticated data see the :ref: `xml-vulnerabilities ` and
23
- :ref: `defused-packages ` sections.
23
+ :ref: `defusedxml-package ` sections.
24
24
25
25
It is important to note that modules in the :mod: `xml ` package require that
26
26
there be at least one SAX-compliant XML parser available. The Expat parser is
@@ -113,9 +113,9 @@ decompression bomb
113
113
The documentation for `defusedxml `_ on PyPI has further information about
114
114
all known attack vectors with examples and references.
115
115
116
- .. _ defused-packages :
116
+ .. _ defusedxml-package :
117
117
118
- The :mod: `defusedxml ` and :mod: ` defusedexpat ` Packages
118
+ The :mod: `defusedxml ` Package
119
119
------------------------------------------------------
120
120
121
121
`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
124
124
package also ships with example exploits and extended documentation on more
125
125
XML exploits such as XPath injection.
126
126
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
-
134
127
135
128
.. _defusedxml : https://pypi.org/project/defusedxml/
136
- .. _defusedexpat : https://pypi.org/project/defusedexpat/
137
129
.. _Billion Laughs : https://en.wikipedia.org/wiki/Billion_laughs
138
130
.. _ZIP bomb : https://en.wikipedia.org/wiki/Zip_bomb
139
131
.. _DTD : https://en.wikipedia.org/wiki/Document_type_definition
0 commit comments