summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbt-nia <74181389+bt-nia@users.noreply.github.com>2021-08-04 20:08:59 +0200
committerGitHub <noreply@github.com>2021-08-04 20:08:59 +0200
commitda02facf470165a048e5aad86a4a65c01717fcb1 (patch)
tree29a4958cd272853d2609ada46d747eebb056ba0b
parent0a95365ebb5ff00e48f0be346ec9c1bee15855d1 (diff)
downloadnetworkx-da02facf470165a048e5aad86a4a65c01717fcb1.tar.gz
Added security warning to gefx parser (#5003)
* Added security warning to gefx parser * apply proposed changes from other pull request.
-rw-r--r--networkx/readwrite/gexf.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/networkx/readwrite/gexf.py b/networkx/readwrite/gexf.py
index 5bd77b05..6b0dfd62 100644
--- a/networkx/readwrite/gexf.py
+++ b/networkx/readwrite/gexf.py
@@ -1,5 +1,10 @@
"""Read and write graphs in GEXF format.
+.. warning::
+ This parser uses the standard xml library present in Python, which is
+ insecure - see :doc:`library/xml` for additional information.
+ Only parse GEFX files you trust.
+
GEXF (Graph Exchange XML Format) is a language for describing complex
network structures, their associated data and dynamics.