Skip to content

[3.13] gh-143921: Reject NUL, CR and LF in IMAP commands (GH-143922, GH-153067) (GH-153137)#153287

Merged
serhiy-storchaka merged 1 commit into
python:3.13from
serhiy-storchaka:backport-2981822-3.13
Jul 7, 2026
Merged

[3.13] gh-143921: Reject NUL, CR and LF in IMAP commands (GH-143922, GH-153067) (GH-153137)#153287
serhiy-storchaka merged 1 commit into
python:3.13from
serhiy-storchaka:backport-2981822-3.13

Conversation

@serhiy-storchaka

Copy link
Copy Markdown
Member

Combined backport of GH-143922, which rejected all control characters, and GH-153067, which narrowed the check to NUL, CR and LF. Other control characters are valid in quoted strings and are sent quoted.

(cherry picked from commit 2981822)

Co-authored-by: Seth Michael Larson seth@python.org
Co-authored-by: Claude Fable 5 noreply@anthropic.com

…nGH-143922, pythonGH-153067) (pythonGH-153137)

Combined backport of pythonGH-143922, which rejected all control characters,
and pythonGH-153067, which narrowed the check to NUL, CR and LF.  Other
control characters are valid in quoted strings and are sent quoted.

(cherry picked from commit 6262704)
(cherry picked from commit d0921ef)
(cherry picked from commit 2981822)

Co-authored-by: Seth Michael Larson <seth@python.org>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
@serhiy-storchaka serhiy-storchaka requested a review from a team as a code owner July 7, 2026 17:41
@serhiy-storchaka serhiy-storchaka enabled auto-merge (squash) July 7, 2026 17:53
@serhiy-storchaka serhiy-storchaka merged commit 71926d9 into python:3.13 Jul 7, 2026
74 of 76 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant