CVE-2026-44985: Overly Broad Exclusion Via Contains

Using `strings.Contains` to check an identifier like an Image or Name for exclusion can lead to evasion bypasses, as an attacker can craft names that contain the target substring. Use exact equality (`==`) or `strings.HasPrefix` instead.

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0Go
greprules fetch cve-2026-44985-overly-broad-exclusion-via-contains --engine opengrep

Description

Using `strings.Contains` to check an identifier like an Image or Name for exclusion can lead to evasion bypasses, as an attacker can craft names that contain the target substring. Use exact equality (`==`) or `strings.HasPrefix` instead.