You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(ipc): tighten workload validation on utils:get-workload-available-tools
Address Copilot review on #2037: the previous guard accepted any string
for transport_type / proxy_mode and any number for port, so prototype
keys like `__proto__` would fall through into createTransport, and
`NaN` / non-http URLs could reach `new URL(...)` at the transport layer.
- Restrict `transport_type` to {stdio, streamable-http, sse} and
`proxy_mode` to {sse, streamable-http} via explicit allowlists
- Require `port` to be a finite integer in [0, 65535]
- Require `url` to be an http(s) URL parseable by `new URL` (empty
string still tolerated; createTransport falls back to localhost)
0 commit comments