Catastrophic backtracking in URL authority parser when passed URL containing many @ characters
Published 1 Jun 2021 · Updated 8 Jul 2026
Is your project on an affected urllib3?
Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- >=1.25.4 <1.26.5
- Fixed in
- 1.26.5
pip install 'urllib3>=1.26.5'Details
Impact
When provided with a URL containing many @ characters in the authority component the authority regular expression exhibits catastrophic backtracking causing a denial of service if a URL were passed as a parameter or redirected to via an HTTP redirect.
Patches
The issue has been fixed in urllib3 v1.26.5.
References
For more information
If you have any questions or comments about this advisory:
- Ask in our community Discord
- Email [sethmichaellarson@gmail.com](mailto:sethmichaellarson@gmail.com)
Is GHSA-q2q7-5pp4-w6pg in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected urllib3, and gives you the command that fixes it.
More advisories for urllib3
- MediumCVE-2026-97688urllib3: Chunked Deflate streaming can enter an infinite loop · 30 Sept 2026
- HighCVE-2026-97689urllib3: HTTPResponse.stream()/read_chunked() buffers an unbounded chunk-size line into memory · 30 Sept 2026
- HighCVE-2026-97687urllib3: HTTPS proxy TLS configuration may be ignored or overridden · 30 Sept 2026
- HighCVE-2026-44432urllib3: Decompression-bomb safeguards bypassed in parts of the streaming API · 11 May 2026
- HighCVE-2026-44431urllib3: Sensitive headers forwarded across origins in proxied low-level redirects · 11 May 2026
- HighCVE-2026-21441Decompression-bomb safeguards bypassed when following HTTP redirects (streaming API) · 7 Jan 2026
References
- Linkgithub.com/urllib3/urllib3/security/advisories/GHSA-q2q7-5pp4-w6pg
- Advisorynvd.nist.gov/vuln/detail/CVE-2021-33503
- Linkgithub.com/urllib3/urllib3/commit/2d4a3fee6de2fa45eb82169361918f759269b4ec
- Linkgithub.com/urllib3/urllib3/commit/5b047b645f5f93900d5e2fc31230848c25eb1f5f#diff-52026d639119bf1e0364836b4e8a18bd9ed3c95c6ba39b26534a5057a65e35bbR65
- Advisorygithub.com/advisories/GHSA-q2q7-5pp4-w6pg
- Linkgithub.com/pypa/advisory-database/tree/main/vulns/urllib3/PYSEC-2021-108.yaml
- Packagegithub.com/urllib3/urllib3
- Linklists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6SCV7ZNAHS3E6PBFLJGENCDRDRWRZZ6W
- Linklists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FMUGWEAUYGGHTPPXT6YBD53WYXQGVV73
- Linksecurity.gentoo.org/glsa/202107-36
- Linkwww.oracle.com/security-alerts/cpuoct2021.html
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.