Python Security Policy: Add note on sandboxes - #1874
Merged
StanFromIreland merged 1 commit intoAug 9, 2026
Conversation
Documentation build overview
|
JelleZijlstra
approved these changes
Aug 8, 2026
gpshead
approved these changes
Aug 8, 2026
woodruffw
approved these changes
Aug 8, 2026
|
(Speaking from PSRT perspective: seems reasonable to me, IMO it'd be fair to generalize even further to "Python does not make security representations about arbitrary code, any claims about the security of arbitrary code should be evaluated by the party making those claims.") |
Eclips4
approved these changes
Aug 9, 2026
Eclips4
left a comment
Member
There was a problem hiding this comment.
FWIW, there have been were a few attempts to make Python sandboxable, and none of them were successful succesfull. As Victor Stinner once said, "run python in a sandbox, not the opposite!"
picnixz
approved these changes
Aug 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CC @python/psrt
Prompted by a recent report (and several similar ones before it), this clarifies that sandboxing untrusted Python code is not a security boundary we support. Escapes from third-party sandboxes should be reported to their developers instead.