AploSec / Disclosures / CVE-2026-145313
agentgateway: Dynamic backend loopback and link-local restriction bypassed through CONNECT in route mode
CVE-2026-145313 · published 2026-12-04
In plain words: this type of bug lets someone trick the server into making requests to places it should not reach (server-side request forgery, SSRF). A fixed release is listed.
Summary
CVE-2026-145313 affects agentgateway (Server) 1.7.0 (incl. pre-releases) to < 1.8.0: Dynamic backend loopback restriction bypass via CONNECT in route mode (CWE-918). Fixed in 1.8.0. CVSS 3.1 base score 4.3 (Medium), assigned by Akrites. Published 2026-12-04 by Akrites. Credit: Zachariah Mithani (AploSec), fwittreverce, Leo Ruocco, Agentic Thinking (agenticbench.org), John Howard.
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.
Evidence
Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.
Remediation
Upgrade agentgateway to 1.8.0 or later. Releases in the affected range (1.7.0 (incl. pre-releases) to < 1.8.0) are vulnerable. See the linked advisory for details on affected release lines.
Timeline
- 2026-12-04 CVE published
References
- Referencehttps://github.com/agentgateway/agentgateway/security/advisories/GHSA-8qfj-9cv9-8898
- Fix pull requesthttps://github.com/agentgateway/agentgateway/pull/4528
- Releasehttps://github.com/agentgateway/agentgateway/releases/tag/v1.8.0
- CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-145313
- NVD recordhttps://nvd.nist.gov/vuln/detail/CVE-2026-145313
- Severity
- Medium 4.3CVSS 3.1, scored by Akrites in the CVE record
- Package
- agentgateway
- Ecosystem
- Server
- Affected
- 1.7.0 (incl. pre-releases) to < 1.8.0
- Fixed
- 1.8.0
- Weakness
- CWE-918
- CNA
- Akrites
- Credit
- Zachariah Mithani (AploSec)finderfwittrevercefinderLeo Ruocco, Agentic Thinking (agenticbench.org)finderJohn Howardremediation developer