diff options
author | Christian Heimes <christian@python.org> | 2018-09-24 14:38:37 +0200 |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-09-24 05:38:37 -0700 |
commit | 394e55a9279d17240ef6fe85d3b4ea3fe7b6dff5 (patch) | |
tree | 2145116812df54659a7dd66f7b13d718472db531 /Doc/library/xml.sax.rst | |
parent | ddc163df25191af5bf8000091dbf8f6500b1d7c9 (diff) | |
download | cpython-git-394e55a9279d17240ef6fe85d3b4ea3fe7b6dff5.tar.gz |
[3.7] bpo-17239: Disable external entities in SAX parser (GH-9217) (GH-9511)
The SAX parser no longer processes general external entities by default
to increase security. Before, the parser created network connections
to fetch remote files or loaded local files from the file system for DTD
and entities.
Signed-off-by: Christian Heimes <christian@python.org>
https://bugs.python.org/issue17239.
(cherry picked from commit 17b1d5d4e36aa57a9b25a0e694affbd1ee637e45)
Co-authored-by: Christian Heimes <christian@python.org>
https://bugs.python.org/issue17239
Diffstat (limited to 'Doc/library/xml.sax.rst')
-rw-r--r-- | Doc/library/xml.sax.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/library/xml.sax.rst b/Doc/library/xml.sax.rst index 78d6633e09..952090c339 100644 --- a/Doc/library/xml.sax.rst +++ b/Doc/library/xml.sax.rst @@ -24,6 +24,14 @@ the SAX API. constructed data. If you need to parse untrusted or unauthenticated data see :ref:`xml-vulnerabilities`. +.. versionchanged:: 3.7.1 + + The SAX parser no longer processes general external entities by default + to increase security. Before, the parser created network connections + to fetch remote files or loaded local files from the file + system for DTD and entities. The feature can be enabled again with method + :meth:`~xml.sax.xmlreader.XMLReader.setFeature` on the parser object + and argument :data:`~xml.sax.handler.feature_external_ges`. The convenience functions are: |