]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39073: validate Address parts to disallow CRLF (GH-19007)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 27 May 2020 13:37:40 +0000 (06:37 -0700)
committerGitHub <noreply@github.com>
Wed, 27 May 2020 13:37:40 +0000 (06:37 -0700)
commit75635c6095bcfbb9fccc239115d3d03ae20a307f
tree002635c5771d551f74dd65711a014661c4d99dbe
parent5594c07d97cc56ec7fabc66c6a5c644d3b809612
bpo-39073: validate Address parts to disallow CRLF (GH-19007)

 Disallow CR or LF in email.headerregistry.Address arguments to guard against header injection attacks.
(cherry picked from commit 614f17211c5fc0e5b828be1d3320661d1038fe8f)

Co-authored-by: Ashwin Ramaswami <aramaswamis@gmail.com>
Lib/email/headerregistry.py
Lib/test/test_email/test_headerregistry.py
Misc/NEWS.d/next/Security/2020-03-15-01-28-36.bpo-39073.6Szd3i.rst [new file with mode: 0644]