# GHSA-373w-rj84-pv6x: SafeURL-Python's hostname blocklist does not block FQDNs

- Severity: Low (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2023-06-29T15:02:16.000Z
- Modified: 2025-02-14T05:29:26.997Z

## Description

### 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

(As written by GitHub Advisory Database.)

## Affected

- safeurl-python (PyPI): before 1.3

## References

- <https://github.com/IncludeSecurity/safeurl-python/security/advisories/GHSA-373w-rj84-pv6x> (web)
- <https://github.com/IncludeSecurity/safeurl-python/pull/6> (web)
- <https://github.com/IncludeSecurity/safeurl-python/commit/c4f9677f8790a58eaa1953bac286cca75a5f580e> (web)
- <https://github.com/IncludeSecurity/safeurl-python> (package)

## Sources

- GitHub Advisory Database: [GHSA-373w-rj84-pv6x](https://github.com/advisories/GHSA-373w-rj84-pv6x), CC-BY-4.0, modified 2025-02-14

---

Page: https://cve.day/GHSA-373w-rj84-pv6x · Whole record: https://cve.day/GHSA-373w-rj84-pv6x.json · Rebuilt by cve.day 2026-11-25T22:56:33.672Z
