CuraSec

Learn archived

headerscrub: Go lib strips auth headers on cross-origin redirects

2026-10-07 17:48 UTC · GitHub Trending · read the source ↗ #go#http-security#open-source
  • Engineer — Learn: Addresses a real credential-leak risk: Go’s default http.Client follows redirects with all headers intact, which can expose tokens like X-Api-Key to unintended origins. Evaluate this library if your Go services make authenticated outbound HTTP requests that may follow redirects.
  • SOC/IR — Skip
  • Leader — Skip
This entry was curated and judged by AI (Claude) with automated enrichment (CISA KEV / EPSS / public PoC). Verify against the original source before acting. Found a bad verdict? Report it — confirmed errors go to the corrections log.