CVE-2026-34206: Go Xss Openredirect Unvalidated Destination

Unvalidated user input flows into an HTTP redirect or a template execution without proper escaping. This causes Open Redirect or Cross-Site Scripting (XSS). Ensure destination URLs are validated to be relative paths, and ensure `html/template` is used instead of `text/template`.

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Go
greprules fetch cve-2026-34206-go-xss-openredirect-unvalidated-destination --engine opengrep

Description

Unvalidated user input flows into an HTTP redirect or a template execution without proper escaping. This causes Open Redirect or Cross-Site Scripting (XSS). Ensure destination URLs are validated to be relative paths, and ensure `html/template` is used instead of `text/template`.