Skip to main content

Tag: Host Header

Problems due to incorrect or malicious Host header values

IDTitleDescriptionCategoryTechnologyTags
CRE-2025-0031
Medium
Impact: 5/10
Mitigation: 5/10
Django returns DisallowedHost error for untrusted HTTP_HOST headersDjango applications may return a "DisallowedHost" error when receiving requests with an unrecognized or missing Host header. This typically occurs in production environments where reverse proxies, load balancers, or external clients send requests using an unexpected domain or IP address. Django blocks these requests unless the domain is explicitly listed in `ALLOWED_HOSTS`.Framework ProblemsdjangoDjangoDisallowedhostConfigurationWebSecurityHost HeaderPublic