CVE-2026-27818: Domain Suffix Validation Bypass

The domain validation logic checks if a hostname ends with an allowed domain without validating that the check is an exact domain match or a proper subdomain (prepended with a dot). An attacker could bypass the check by registering a domain that ends with the allowed domain name (e.g., 'attacker-example.com' for 'example.com'). Update the logic to ensure exa

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0JS
greprules fetch cve-2026-27818-domain-suffix-validation-bypass --engine opengrep

Description

The domain validation logic checks if a hostname ends with an allowed domain without validating that the check is an exact domain match or a proper subdomain (prepended with a dot). An attacker could bypass the check by registering a domain that ends with the allowed domain name (e.g., 'attacker-example.com' for 'example.com'). Update the logic to ensure exa