Skip to content

Commit b9e690c

Browse files
Add _frozen_importlib, _frozen_importlib_external, _imp to UNSAFE_IMPORTS
They allowed pickles to obtain live module objects to patch them, load scripts or native extensions without triggering UnsafeImports. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e243fbb commit b9e690c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

fickling/fickle.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@
6464
"eval",
6565
# Import manipulation
6666
"importlib",
67+
"_frozen_importlib",
68+
"_frozen_importlib_external",
69+
"_imp",
6770
"pkgutil",
6871
"zipimport",
6972
# Operator module bypasses

0 commit comments

Comments
 (0)