CVE-2026-46428: Inverted Hostname Verification Flag

A variable implying insecure behavior (e.g., 'accept_invalid', 'insecure', 'skip') is passed directly to `verify_hostname` or `set_verify_hostname`. This function expects `true` to enable verification and `false` to disable it. Passing an 'insecure' flag directly without negation inadvertently disables hostname verification when a secure configuration was ex

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0Rust
greprules fetch cve-2026-46428-inverted-hostname-verification-flag --engine opengrep

Description

A variable implying insecure behavior (e.g., 'accept_invalid', 'insecure', 'skip') is passed directly to `verify_hostname` or `set_verify_hostname`. This function expects `true` to enable verification and `false` to disable it. Passing an 'insecure' flag directly without negation inadvertently disables hostname verification when a secure configuration was ex