Server-side Request Forgery (SSRF) Affecting safeurl-python package, versions [,1.2)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.06% (29th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Server-side Request Forgery (SSRF) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-SAFEURLPYTHON-3251746
  • published27 Jan 2023
  • disclosed27 Jan 2023
  • creditDirox

Introduced: 27 Jan 2023

CVE-2023-24622  (opens in a new tab)
CWE-918  (opens in a new tab)

How to fix?

Upgrade safeurl-python to version 1.2 or higher.

Overview

safeurl-python is a library that aids developers in protecting against SSRF

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) in some circumstances, due to a permissive regex (re.match("(?i)^%s" % domain, value)) used in domain filtering. This allows a benign domain like victim.com that appears on the allowlist to match the unintended domain victimacomattacker.com. The most common use of the allowlist functionality is for internal resources and therefore the potential for successful SSRF is limited.

CVSS Scores

version 3.1