]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Add security warning to serializer extension
authorFederico Caselli <cfederico87@gmail.com>
Mon, 21 Nov 2022 23:07:53 +0000 (00:07 +0100)
committerFederico Caselli <cfederico87@gmail.com>
Mon, 21 Nov 2022 23:07:53 +0000 (00:07 +0100)
Change-Id: I5c7c076bc93fc250c05f7996e83359d19d1f3214

lib/sqlalchemy/ext/serializer.py

index 8d84a1eb04bcc755ee6ca47e9057390f3fad00b1..337b7ab2fbbf13f6e5259093df2451bdc9954d3b 100644 (file)
@@ -20,6 +20,11 @@ etc. which are referenced by the structure are not persisted in serialized
 form, but are instead re-associated with the query structure
 when it is deserialized.
 
+.. warning:: The serializer extension uses pickle to serialize and
+   deserialize objects, so the same security consideration mentioned
+   in the `python documentation
+   <https://docs.python.org/3/library/pickle.html>`_ apply.
+
 Usage is nearly the same as that of the standard Python pickle module::
 
     from sqlalchemy.ext.serializer import loads, dumps