Skip to content

Commit 9c656d3

Browse files
committed
Replace warnings with notes
Replace also "XML Vulnerabilities" with "XML Security".
1 parent 39ba833 commit 9c656d3

9 files changed

Lines changed: 23 additions & 29 deletions

Doc/library/pyexpat.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,10 @@
1616
references to these attributes should be marked using the :member: role.
1717
1818
19-
.. warning::
19+
.. note::
2020

21-
The :mod:`pyexpat` module is not secure against maliciously
22-
constructed data. If you need to parse untrusted or unauthenticated data see
23-
:ref:`xml-vulnerabilities`.
21+
If you need to parse untrusted or unauthenticated data, see
22+
:ref:`xml-security`.
2423

2524

2625
.. index:: single: Expat

Doc/library/security_warnings.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ The following modules have specific security considerations:
2828
<subprocess-security>`
2929
* :mod:`tempfile`: :ref:`mktemp is deprecated due to vulnerability to race
3030
conditions <tempfile-mktemp-deprecated>`
31-
* :mod:`xml`: :ref:`XML vulnerabilities <xml-vulnerabilities>`
31+
* :mod:`xml`: :ref:`XML security <xml-security>`
3232
* :mod:`zipfile`: :ref:`maliciously prepared .zip files can cause disk volume
3333
exhaustion <zipfile-resources-limitations>`
3434

Doc/library/xml.dom.minidom.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,10 @@ not already proficient with the DOM should consider using the
1919
:mod:`xml.etree.ElementTree` module for their XML processing instead.
2020

2121

22-
.. warning::
22+
.. note::
2323

24-
The :mod:`xml.dom.minidom` module is not secure against
25-
maliciously constructed data. If you need to parse untrusted or
26-
unauthenticated data see :ref:`xml-vulnerabilities`.
24+
If you need to parse untrusted or unauthenticated data, see
25+
:ref:`xml-security`.
2726

2827

2928
DOM applications typically start by parsing some XML into a DOM. With

Doc/library/xml.dom.pulldom.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,10 @@ responsible for explicitly pulling events from the stream, looping over those
1919
events until either processing is finished or an error condition occurs.
2020

2121

22-
.. warning::
22+
.. note::
2323

24-
The :mod:`xml.dom.pulldom` module is not secure against
25-
maliciously constructed data. If you need to parse untrusted or
26-
unauthenticated data see :ref:`xml-vulnerabilities`.
24+
If you need to parse untrusted or unauthenticated data, see
25+
:ref:`xml-security`.
2726

2827
.. versionchanged:: 3.7.1
2928

Doc/library/xml.etree.elementtree.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,10 @@ for parsing and creating XML data.
2020
The :mod:`!xml.etree.cElementTree` module is deprecated.
2121

2222

23-
.. warning::
23+
.. note::
2424

25-
The :mod:`xml.etree.ElementTree` module is not secure against
26-
maliciously constructed data. If you need to parse untrusted or
27-
unauthenticated data see :ref:`xml-vulnerabilities`.
25+
If you need to parse untrusted or unauthenticated data, see
26+
:ref:`xml-security`.
2827

2928
Tutorial
3029
--------

Doc/library/xml.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,11 @@ The XML handling submodules are:
4040
* :mod:`xml.parsers.expat`: the Expat parser binding
4141

4242

43-
.. _xml-vulnerabilities:
43+
.. _xml-security:
4444

45-
XML vulnerabilities
46-
-------------------
45+
XML security
46+
------------
4747

48-
The XML processing modules are not secure against maliciously constructed data.
4948
An attacker can abuse XML features to carry out denial of service attacks,
5049
access local files, generate network connections to other machines, or
5150
circumvent firewalls.

Doc/library/xml.sax.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,10 @@ SAX exceptions and the convenience functions which will be most used by users of
1818
the SAX API.
1919

2020

21-
.. warning::
21+
.. note::
2222

23-
The :mod:`xml.sax` module is not secure against maliciously
24-
constructed data. If you need to parse untrusted or unauthenticated data see
25-
:ref:`xml-vulnerabilities`.
23+
If you need to parse untrusted or unauthenticated data, see
24+
:ref:`xml-security`.
2625

2726
.. versionchanged:: 3.7.1
2827

Doc/library/xmlrpc.client.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ between conformable Python objects and XML on the wire.
2424
.. warning::
2525

2626
The :mod:`xmlrpc.client` module is not secure against maliciously
27-
constructed data. If you need to parse untrusted or unauthenticated data see
28-
:ref:`xml-vulnerabilities`.
27+
constructed data. If you need to parse untrusted or unauthenticated data,
28+
see :ref:`xml-security`.
2929

3030
.. versionchanged:: 3.5
3131

Doc/library/xmlrpc.server.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ servers written in Python. Servers can either be free standing, using
2020
.. warning::
2121

2222
The :mod:`xmlrpc.server` module is not secure against maliciously
23-
constructed data. If you need to parse untrusted or unauthenticated data see
24-
:ref:`xml-vulnerabilities`.
23+
constructed data. If you need to parse untrusted or unauthenticated data,
24+
see :ref:`xml-security`.
2525

2626
.. include:: ../includes/wasm-notavail.rst
2727

0 commit comments

Comments
 (0)