CVE-2026-32716: Path Startswith Bypass

Validation of path boundaries using string `startswith` is prone to authorization bypasses. Paths should be compared using path-aware mechanisms to ensure that directory boundaries match precisely. For instance, checking if `/johnathan` starts with `/john` returns True, potentially bypassing directory restrictions. Enforce exact match or a trailing slash bef

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Python
greprules fetch cve-2026-32716-path-startswith-bypass --engine opengrep

Description

Validation of path boundaries using string `startswith` is prone to authorization bypasses. Paths should be compared using path-aware mechanisms to ensure that directory boundaries match precisely. For instance, checking if `/johnathan` starts with `/john` returns True, potentially bypassing directory restrictions. Enforce exact match or a trailing slash bef