VDB
Sign up
MEDIUM5.3

PYSEC-2023-298

Quick fix

PYSEC-2023-298 — safeurl-python: upgrade to the fixed version with the command below.

pip install --upgrade 'safeurl-python>=1.2'

Details

isInList in the safeurl-python package before 1.2 for Python has an insufficiently restrictive regular expression for external domains, leading to SSRF.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/safeurl-python
Introduced in: 0Fixed in: 1.2
Fixpip install --upgrade 'safeurl-python>=1.2'

References