Advisory

GHSA-q2q7-5pp4-w6pg

Also known as: CVE-2021-33503, PYSEC-2021-108

Summary

Catastrophic backtracking in URL authority parser when passed URL containing many @ characters

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:

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-06-01 21:19 UTC
Modified
2026-07-08 06:00 UTC

Affected packages and fixes

urllib3

PyPI · All systems

Affected

  • introduced 1.25.4, fixed 1.26.5 (ecosystem)

Fixed versions

1.26.5

Fix

  • Fixed version 1.26.5
    pip install --upgrade urllib3==1.26.5

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences