CVE-2026-145313: agentgateway: Dynamic backend loopback and link-local restriction bypassed through CONNECT in route mode
In agentgateway 1.7.0, including its 1.7.0 pre-releases, the config.backend.allowDynamicLoopback setting was not enforced for CONNECT requests on listeners that set frontendPolicies.connect.mode to route. When this setting is false, dynamic backends must not connect to loopback or link-local addresses, but a CONNECT request routed to a dynamic backend skipped the check. A client that can send CONNECT requests through such a route can open a tunnel to services listening on the gateway host's loopback interface, or to link-local addresses, for example with CONNECT 127.0.0.1:1234. Deployments are affected only if a listener enables CONNECT in route mode, a route that accepts CONNECT uses a dynamic backend, and untrusted clients can send CONNECT requests through that route. Versions before 1.7.0 do not have the allowDynamicLoopback restriction.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
agentgatewayto a version that resolves this vulnerability.Fixed in 1.8.0
Event History
Frequently Asked Questions
Which deployments are actually exposed?
A deployment is affected only when a listener enables CONNECT in route mode, a route accepting CONNECT uses a dynamic backend, and untrusted clients can send CONNECT requests through that route. Deployments lacking any of those conditions are not described as affected.
What does an attacker need to exploit this?
The attacker needs the ability to send CONNECT requests through the affected route. They can then request a destination such as 127.0.0.1:1234 and open a tunnel to services on the gateway host's loopback interface or to link-local addresses.
Is the vulnerable behavior present in versions before 1.7.0?
No. Versions before 1.7.0 do not have the allowDynamicLoopback restriction, so this specific failure to enforce that restriction does not apply to them.
What configuration can reduce exposure if an update is not immediately possible?
Do not expose CONNECT-capable route-mode listeners with dynamic backends to untrusted clients. Restricting untrusted clients from sending CONNECT requests through those routes removes a stated condition for exploitation.
How can I check whether the intended restriction is being bypassed?
Review listeners for frontendPolicies.connect.mode set to route, then identify CONNECT-accepting routes that use dynamic backends. In the affected 1.7.0 release or pre-releases, a CONNECT request to a loopback or link-local destination through such a route can indicate the restriction is not being enforced.