RubySec

Providing security resources for the Ruby community

CVE-2026-80213 (resolv): CVE-2026-80213 - Hostname validation bypass

CVE-2026-80213 - Hostname validation bypass

Published: August 27, 2026

SECURITY IDENTIFIERS

GEM

resolv

PATCHED VERSIONS

~> 0.3.2 >= 0.7.2

DESCRIPTION

An application that checks a hostname against an allow list or an SSRF filter and then resolves it can be made to look up a domain other than the one it checked. The string that passes validation and the name that reaches the network are not the same, so the connection can end up at a host the application never approved. This requires a hostname that exceeds the DNS length limits, so validation that rejects names longer than 255 octets, or labels longer than 63 octets, is not affected.

Credits

Thanks to dalifit for discovering these issues.

RELATED