Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[3.12] [CVE-2023-27043] gh-102988: Reject malformed addresses in email.parseaddr() (GH-111116)#123766

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ambv merged 1 commit intopython:3.12fromencukou:backport-4a153a1-3.12
Sep 6, 2024

Conversation

encukou
Copy link
Member

@encukouencukou commentedSep 6, 2024
edited by github-actionsbot
Loading

Detect email address parsing errors and return empty tuple to indicate the parsing error (old API). Add an optional 'strict' parameter to getaddresses() and parseaddr() functions. Patch by Thomas Dwyer.

Co-Authored-By: Thomas Dwyergithub@tomd.tel
(cherry picked from commit4a153a1)


📚 Documentation preview 📚:https://cpython-previews--123766.org.readthedocs.build/

…n email.parseaddr() (pythonGH-111116)Detect email address parsing errors and return empty tuple toindicate the parsing error (old API). Add an optional 'strict'parameter to getaddresses() and parseaddr() functions. Patch byThomas Dwyer.Co-Authored-By: Thomas Dwyer <github@tomd.tel>(cherry picked from commit4a153a1)
@encukouencukou requested a review froma team as acode ownerSeptember 6, 2024 09:45
@bedevere-appbedevere-appbot added type-bugAn unexpected behavior, bug, or error type-securityA security issue labelsSep 6, 2024
@ambvambv merged commit1506824 intopython:3.12Sep 6, 2024
32 checks passed
miketheman added a commit to miketheman/warehouse that referenced this pull requestSep 12, 2024
Now that Python validates the addresses more strictly, we won't hit thecondition any longer.If we wish to preserve this condition, we could also pass `strict=False`to `getaddresses()`, but that seems to be counter to our desire ofhaving a valid email address.Refs:python/cpython#123766Signed-off-by: Mike Fiedler <miketheman@gmail.com>
ewdurbin pushed a commit to pypi/warehouse that referenced this pull requestSep 13, 2024
* chore: update Python 3.12.6Refs:https://www.python.org/downloads/release/python-3126/Signed-off-by: Mike Fiedler <miketheman@gmail.com>* chore: remove unreachable conditionNow that Python validates the addresses more strictly, we won't hit thecondition any longer.If we wish to preserve this condition, we could also pass `strict=False`to `getaddresses()`, but that seems to be counter to our desire ofhaving a valid email address.Refs:python/cpython#123766Signed-off-by: Mike Fiedler <miketheman@gmail.com>* test: refactor test case to parametrizeExtract test cases from inline to make it clearer which permutations arebeing tested.Signed-off-by: Mike Fiedler <miketheman@gmail.com>---------Signed-off-by: Mike Fiedler <miketheman@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
type-bugAn unexpected behavior, bug, or errortype-securityA security issue
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@encukou@ambv@vstinner

[8]ページ先頭

©2009-2025 Movatter.jp