Bug 2578262

Summary: CVE-2026-16052 python3.16: python: Cookie restriction bypass via unescaped semicolons in http.cookies.Morsel [fedora-all]
Product: [Fedora] Fedora Reporter: Avinash Hanwate <ahanwate>
Component: python3.16Assignee: Python Maintainers <python-maint>
Status: ASSIGNED --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: ksurma, mhroncok, python-maint, python-packagers-sig
Target Milestone: ---Keywords: Security, SecurityTracking
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: {"flaws": ["0be86d7e-5652-4992-beb0-8d29d7803ddb"]}
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2574488    

Description Avinash Hanwate 2026-11-20 14:04:45 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

The http.cookies.Morsel class allows separator semicolons in attribute
values
and includes them verbatim in all output formats. An attacker who can
control
these values could use this to relax the cookie's Domain or SameSite
restrictions.

Comment 1 Miro HronĨok 2026-11-21 12:49:30 UTC
Fixed upstream in main (gh-161707, commit 27026842f67), but not in any released 3.16 version yet (3.16.0a2 predates the fix). It will be included in the next upstream release that Fedora picks up.

Comment assisted by Claude Sonnet 5.5