cpython/Lib/email
Petr Viktorin 4d069d5b11
[3.8] [CVE-2023-27043] gh-102988: Reject malformed addresses in email.parseaddr() (GH-111116) (#123770)
Detect email address parsing errors and return empty tuple to
indicate the parsing error (old API). Add an optional 'strict'
parameter to getaddresses() and parseaddr() functions. Patch by
Thomas Dwyer.

(cherry picked from commit 4a153a1d3b)

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-Authored-By: Thomas Dwyer <github@tomd.tel>
2024-09-06 13:14:09 +02:00
..
mime
__init__.py
_encoded_words.py bpo-27397: Make email module properly handle invalid-length base64 strings (#7583) 2018-06-12 15:46:22 +03:00
_header_value_parser.py [3.8] gh-121650: Encode newlines in headers, and verify headers are sound (GH-122233) (#122611) 2024-09-04 17:36:17 +02:00
_parseaddr.py bpo-45001: Make email date parsing more robust against malformed input (GH-27946) (GH-27974) 2021-08-26 17:49:12 +02:00
_policybase.py [3.8] gh-121650: Encode newlines in headers, and verify headers are sound (GH-122233) (#122611) 2024-09-04 17:36:17 +02:00
architecture.rst
base64mime.py
charset.py bpo-36793: Remove unneeded __str__ definitions. (GH-13081) 2019-05-06 22:29:40 +03:00
contentmanager.py bpo-40597: Allow email.contextmanager set_content() to set a null string. (GH-20542) 2020-07-08 14:18:38 -07:00
encoders.py
errors.py [3.8] gh-121650: Encode newlines in headers, and verify headers are sound (GH-122233) (#122611) 2024-09-04 17:36:17 +02:00
feedparser.py bpo-30835: email: Fix AttributeError when parsing invalid CTE (GH-13598) 2019-06-04 11:00:47 -07:00
generator.py [3.8] gh-121650: Encode newlines in headers, and verify headers are sound (GH-122233) (#122611) 2024-09-04 17:36:17 +02:00
header.py bpo-27737: Allow whitespace only headers encoding (#13478) 2019-05-22 21:13:16 -04:00
headerregistry.py bpo-39073: validate Address parts to disallow CRLF (GH-19007) 2020-05-27 06:37:40 -07:00
iterators.py
message.py Typo fix - "mesasge" should be "message" (GH-22498) 2020-10-02 14:05:36 -07:00
parser.py Fix infinite loop in email folding logic (GH-12732) 2019-07-16 11:08:36 -07:00
policy.py bpo-33524: Fix the folding of email header when max_line_length is 0 or None (#13391) 2019-05-17 15:28:44 -04:00
quoprimime.py bpo-32297: Few misspellings found in Python source code comments. (#4803) 2017-12-14 13:04:53 +02:00
utils.py [3.8] [CVE-2023-27043] gh-102988: Reject malformed addresses in email.parseaddr() (GH-111116) (#123770) 2024-09-06 13:14:09 +02:00