Low

SafeURL-Python's hostname blocklist does not block FQDNs

  • Disclosed: 29.06.2023
  • Updated: 11.10.2026 12:19

Description

If a hostname was blacklisted, it was possible to bypass the blacklist by requesting the FQDN of the host (e.g. adding . to the end).

Impact

The main purpose of this library is to block requests to internal/private IPs and these cannot be bypassed using this finding. But if a library user had specifically set certain hostnames as blocked, then an attacker would be able to circumvent that block to cause SSRFs to request those hostnames.

Patches

Fixed by https://github.com/IncludeSecurity/safeurl-python/pull/6

Credit

https://github.com/Sim4n6

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) safeurl-python < 1.3 1.3

References

CVSS score -
Weakness (CWE)
-
Platform
Python (PyPI)
Package
safeurl-python
Disclosed
29.06.2023
Updated
11.10.2026 12:19

Sources and licenses

OSV / GitHub Advisory Database - GHSA-373w-rj84-pv6x - CC BY 4.0

Vulnerability history: safeurl-python

All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
2
First → latest
01.2023 06.2023
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • Medium 1
  • Low 1

Disclosures per year

  1. 2023: 2
  2. 2024: 0
  3. 2025: 0
  4. 2026: 0
  1. SafeURL-Python's hostname blocklist does not block FQDNs this entry
    Low ghsa-373w-rj84-pv6x < 1.3 1.3

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.