Untriaged
email BytesGenerator header injection due to unquoted newlines
The email module, specifically the "BytesGenerator" class, didn’t properly quote newlines for email headers when serializing an email message allowing for header injection when an email is serialized. This is only applicable if using "LiteralHeader" writing headers that don't respect email folding rules, the new behavior will reject the incorrectly folded headers in "BytesGenerator".
References
-
https://github.com/python/cpython/issues/144125 issue-tracking
-
https://github.com/python/cpython/issues/144125 issue-tracking
-
https://github.com/python/cpython/issues/144125 issue-tracking
-
https://github.com/python/cpython/issues/144125 issue-tracking
-
https://github.com/python/cpython/issues/144125 issue-tracking
Affected products
CPython
- <3.13.12
- <3.15.0
- <3.14.3
- <3.15.0a6
Package maintainers
-
@sheepforce Phillip Seeber <phillip.seeber@googlemail.com>