Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

prometheus/common
main @ 6d120ca
3
Fixes
0
CVEs
HIGH
Peak severity
Highlights
Information Disclosure: 2 prior fixes. Scrutinize any change in this area.
config/http_config.go: most-fixed (2 issues). Treat as high-risk during review.
1 high-severity fix in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Information Disclosure: OAuth2 tokens can be exposed to external hosts during HTTP redirects if token-source initialization occurs prior to establishing whether the target is an untrusted host. Early validation is essential to prevent token emission to external targets.
Credential Leakage: Subsequent requests in a multi-hop redirect chain can leak credentials if the logic fails to track that the path has already crossed a security boundary, particularly when a chain redirects back to the original domain after hitting an external host.
Information Disclosure: Sensitive HTTP headers such as Authorization and cookies are susceptible to leakage across HTTP redirects unless explicitly stripped during cross-host transitions in the transport layer.