security fix
Merged
H3
6mo ago+909+909+012345678901234567890123456789-22-22-01234567890123456789
Summary by cubic
Post-audit hardening across @utcp/http: tighter redirect handling with stronger credential scrubbing, expanded loopback detection, and safer OAuth2 token URL validation. SSE and streaming handshakes now refuse redirects.
-
Bug Fixes
- Added
safeRequestWithRedirectsfor manual discovery, tool calls, and OAuth2 token fetches. - Hardened cross-origin redirects: strip auth/API-key/cookie headers (plus a regex catch‑all), drop the request body on cross-origin 307/308, and normalize default ports so
https://xandhttps://x:443are same-origin. - Validated OAuth2
token_urlat runtime and inOpenApiConverter; eager checks resolve relativetokenUrlagainstspecUrland reject plain HTTP and internal/metadata hosts. - Expanded
isLoopbackUrlto include0.0.0.0,::, the full127.0.0.0/8range, and IPv4‑mapped IPv6.
- Added
-
Dependencies
- Bumped
@utcp/httpto1.1.6.
- Bumped