CVE-2026-63770: Insecure Xff Leftmost Ip

Extracting the leftmost IP address from the X-Forwarded-For (or similar) header by accessing index `0` after splitting by `,`. The leftmost IP address is set by the client and can be easily spoofed, leading to rate limit or authentication bypass mechanisms. Rely on the rightmost IP address added by the trusted proxy instead (e.g., `ips[len(ips)-1]`).

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Go
greprules fetch cve-2026-63770-insecure-xff-leftmost-ip --engine opengrep

Description

Extracting the leftmost IP address from the X-Forwarded-For (or similar) header by accessing index `0` after splitting by `,`. The leftmost IP address is set by the client and can be easily spoofed, leading to rate limit or authentication bypass mechanisms. Rely on the rightmost IP address added by the trusted proxy instead (e.g., `ips[len(ips)-1]`).