Skip to content

Strip CRLF from message headers in SmtpTransport - #19512

Merged
dereuromark merged 1 commit into
5.xfrom
smtp-transport-newline
Jun 26, 2026
Merged

dereuromark merged 1 commit into
5.xfrom
smtp-transport-newline

Conversation

@markstory

Copy link
Copy Markdown
Member

Strip CRLF bytes from message headers when delivering mail by SmtpTransport. This prevents header injection should userland code supply user data into messages headers. I've extended the test coverage for this scenario as well.

Thank you to Himanshu Anand for reporting this issue.

Strip CRLF bytes from message headers when delivering mail by
SmtpTransport. This prevents header injection should userland code
supply user data into messages headers.

Thank you to Himanshu Anand for reporting this issue.
@markstory markstory added this to the 5.3.7 milestone Jun 26, 2026
@dereuromark
dereuromark merged commit 4c78f20 into 5.x Jun 26, 2026
15 checks passed
@dereuromark
dereuromark deleted the smtp-transport-newline branch June 26, 2026 08:57
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.

3 participants