There's a flaw in urllib's AbstractBasicAuthHandler class. An attacker who controls a malicious HTTP server that an HTTP client (such as web browser) connects to, could trigger a Regular Expression Denial of Service (ReDOS) during an authentication request with a specially crafted payload that is sent by the server to the client. The greatest threat that this flaw poses is to application availability.
https://ubuntu.com/security/CVE-2021-3733
https://security.netapp.com/advisory/ntap-20220407-0001/
https://lists.debian.org/debian-lts-announce/2023/06/msg00039.html
https://lists.debian.org/debian-lts-announce/2023/05/msg00024.html
https://github.com/python/cpython/pull/24391
https://github.com/python/cpython/commit/7215d1ae25525c92b026166f9d5cac85fb