https://github.com/python/cpython/commit/75b832a82443b1ce5b3e28bd1a778ed1f8860af3
commit: 75b832a82443b1ce5b3e28bd1a778ed1f8860af3
branch: 3.14
author: Miss Islington (bot) <[email protected]>
committer: StanFromIreland <[email protected]>
date: 2026-10-18T10:52:35Z
summary:

[3.14] Add a security warning to the `mailbox` docs (GH-149295) (#159666)

(cherry picked from commit c5cbe312ca3272022378f11b15349d3ea4ff028e)

Co-authored-by: Stan Ulbrych <[email protected]>
Co-authored-by: R. David Murray <[email protected]>

files:
M Doc/library/mailbox.rst

diff --git a/Doc/library/mailbox.rst b/Doc/library/mailbox.rst
index ed135bf02cb968d..4ec5d3831289852 100644
--- a/Doc/library/mailbox.rst
+++ b/Doc/library/mailbox.rst
@@ -18,6 +18,12 @@ accessing and manipulating on-disk mailboxes and the 
messages they contain.
 :class:`~email.message.Message` class with format-specific state and behavior.
 Supported mailbox formats are Maildir, mbox, MH, Babyl, and MMDF.
 
+.. warning::
+
+   The :mod:`!mailbox` module is designed for use in trusted environments,
+   where data from untrusted sources is never passed to the module's API
+   calls and only trusted users have access to the filesystems accessible
+   to the module.
 
 .. seealso::
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to