Skip to content

Commit 70b86e7

Browse files
gh-148337: Document importlib.resources security model (#148340)
1 parent 1b69156 commit 70b86e7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Doc/library/importlib.resources.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ not** have to exist as physical files and directories on the file system:
3131
for example, a package and its resources can be imported from a zip file using
3232
:py:mod:`zipimport`.
3333

34+
.. warning::
35+
36+
:mod:`importlib.resources` follows the same security model as the built-in
37+
:func:`open` function. Passing untrusted inputs to the functions
38+
in this module is unsafe.
39+
3440
.. note::
3541

3642
The standalone backport of this module provides more information

0 commit comments

Comments
 (0)