CVE-2026-34657: Discarded Sanitization Return Value

A sanitization function was called, but its returned sanitized value was assigned to an unused variable (prefixed with '_') or discarded. The original unsanitized variable was then passed to a sensitive operation. This effectively bypasses the sanitization and can lead to path traversal or injection vulnerabilities. Replace usages of the unsanitized variable

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Rust
greprules fetch cve-2026-34657-discarded-sanitization-return-value --engine opengrep

Description

A sanitization function was called, but its returned sanitized value was assigned to an unused variable (prefixed with '_') or discarded. The original unsanitized variable was then passed to a sensitive operation. This effectively bypasses the sanitization and can lead to path traversal or injection vulnerabilities. Replace usages of the unsanitized variable