8000 gh-121284: Fix email address header folding with parsed encoded-word by medmunds · Pull Request #122754 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-121284: Fix email address header folding with parsed encoded-word #122754

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Mar 18, 2025
Prev Previous commit
Next Next commit
Be more specific in news
  • Loading branch information
medmunds committed Jan 18, 2025
commit 45159cd073c5ec45edd374842a06aa3cdae25aba
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
Fix a problem where email.policy.default header refolding could incorrectly
convert an RFC 2047 encoded-word containing commas or other special
characters to unencoded, unquoted text, enabling sender or recipient
spoofing via a carefully crafted display-name.
Fix bug in the folding of rfc2047 encoded-words when flattening an email message
using a modern email policy. Previously when an encoded-word was too long
for a line, it would be decoded, split across lines, and re-encoded. But commas
and other special characters in the original text could be left unencoded and
unquoted. This could theoretically be used to spoof header lines using
a carefully constructed encoded-word if the resulting rendered email was
transmitted or re-parsed.
Loading
0