Skip to main content
Vulnerability Database/CVE-2026-114362

CVE-2026-114362: HarnessRouter SSRF Vulnerability

CVE-2026-114362 is a server-side request forgery flaw in HarnessRouter versions up to 0.31.12 affecting the Targets Test Endpoint. Attackers can manipulate base_url parameters remotely. This article covers technical details, affected versions, impact assessment, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-114362 Overview

CVE-2026-114362 is a Server-Side Request Forgery (SSRF) vulnerability affecting HarnessRouter versions up to and including 0.31.12. The flaw resides in the Targets Test Endpoint handler within gateway/app.py, where the base_url argument is passed to outbound HTTP calls without validation. An authenticated remote attacker holding an API key can supply arbitrary URLs, causing the server to issue requests to internal services, cloud metadata endpoints, or other unintended destinations. The issue is tracked under security advisory GHSA-c5g7-c47h-f6c3 and classified under CWE-918: Server-Side Request Forgery. Version 0.31.13 resolves the vulnerability through commit 1c4b1fc1f89737dabd089ac1d1c174a57f764e28.

Critical Impact

Authenticated attackers can coerce the HarnessRouter gateway into sending HTTP requests to arbitrary internal or external addresses, exposing private networks and cloud metadata services.

Affected Products

  • HarnessRouter versions 0.0.0 through 0.31.12
  • The gateway/app.py component implementing the Targets Test Endpoint
  • Shared and multi-tenant HarnessRouter deployments are at greatest risk

Discovery Timeline

  • 2026-10-21 - CVE-2026-114362 published to the National Vulnerability Database (NVD)
  • 2026-10-22 - Last updated in NVD database

Technical Details for CVE-2026-114362

Vulnerability Analysis

The HarnessRouter gateway exposes a Targets Test Endpoint that allows authenticated callers to resolve an upload destination given a base_url and an API key. The handler calls the user-supplied URL through the server's outbound HTTP client and returns the response body to the caller. Because the server does not validate the target host, scheme, or resolved IP address, any caller with a valid key can direct the gateway at arbitrary network destinations.

In multi-tenant deployments this gives attackers a confused-deputy primitive: the HarnessRouter process typically has broader network reach than the caller, including access to internal management interfaces and cloud instance metadata services. The responses from those internal services are reflected back to the attacker.

Root Cause

The root cause is missing validation on the base_url parameter inside the _cloud_me helper in gateway/app.py. Before the patch, the function parsed the URL and used it directly in outbound requests without checking the scheme or performing DNS-based filtering against private, loopback, link-local, or cloud metadata ranges.

Attack Vector

The attacker needs network access to the HarnessRouter API and low-privilege authentication in the form of an API key. The attacker invokes the Targets Test Endpoint with a crafted base_url such as http://169.254.169.254/latest/meta-data/ or http://127.0.0.1:<internal-port>/. The gateway performs the request on behalf of the attacker and returns the response, enabling internal reconnaissance and metadata exfiltration.

python
# Security patch in gateway/app.py (post-fix excerpt)
async def _cloud_base_refused(base: str) -> str | None:
    """Why an upload destination's address will not be called, or None."""
    from urllib.parse import urlparse
    try:
        u = urlparse(str(base or ""))
    except ValueError:
        return "invalid url"
    if not u.hostname:
        return "url has no host"
    if _pool_is_local():
        return None if u.scheme in ("http", "https") else "the address must be http or https"
    if u.scheme != "https":
        return "only https addresses are allowed"
    return await _internal_target(u.hostname, u.port or 443)


async def _cloud_me(base_url: str, api_key: str) -> dict:
    refused = await _cloud_base_refused(base_url)
    if refused:
        raise HTTPException(400, f"that address cannot be used: {refused}")
    # ... remainder of handler

Source: HarnessRouter Commit 1c4b1fc. The fix enforces https on shared deployments and rejects any host that resolves to a private, local, or metadata range via _internal_target.

Detection Methods for CVE-2026-114362

Indicators of Compromise

  • Outbound HTTP(S) requests from the HarnessRouter host to RFC1918 ranges, 127.0.0.0/8, or 169.254.0.0/16 that originate from the gateway process.
  • Requests to the Targets Test Endpoint carrying base_url values pointing at non-public hostnames such as localhost, metadata.google.internal, or 169.254.169.254.
  • Unexpected 400 responses from _cloud_me after upgrading, indicating prior probing patterns.

Detection Strategies

  • Instrument the HarnessRouter gateway to log every target of outbound HTTP calls, including the parsed scheme, hostname, and resolved IP.
  • Alert on gateway-originated connections to private, loopback, or cloud metadata address ranges.
  • Correlate API key usage with sudden spikes in Targets Test Endpoint invocations from a single key.

Monitoring Recommendations

  • Forward web and application logs to a centralized analytics platform and build detections for anomalous base_url values submitted to /targets/test style routes.
  • Enable egress traffic monitoring from the HarnessRouter host and apply allowlists where feasible.
  • Review audit trails for API key creation and reuse, flagging keys that interact with the Targets Test Endpoint from new source IPs.

How to Mitigate CVE-2026-114362

Immediate Actions Required

  • Upgrade HarnessRouter to version 0.31.13 or later, which includes commit 1c4b1fc1f89737dabd089ac1d1c174a57f764e28.
  • Rotate any API keys that could have been used to probe the Targets Test Endpoint while unpatched versions were exposed.
  • Restrict network egress from the HarnessRouter host to only the destinations required for legitimate upload workflows.

Patch Information

The vendor fix is published in HarnessRouter Release v0.31.13, referenced in HarnessRouter Pull Request #429, and documented in Security Advisory GHSA-c5g7-c47h-f6c3. The patch introduces _cloud_base_refused, which rejects URLs without a hostname, enforces https on shared deployments, and blocks hosts that resolve to internal ranges via _internal_target.

Workarounds

  • Place HarnessRouter behind an egress proxy that enforces an allowlist of permitted upload destinations.
  • Deny outbound traffic from the gateway host to 127.0.0.0/8, 169.254.0.0/16, 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16 at the network layer.
  • Disable or network-restrict the Targets Test Endpoint until the upgrade is deployed.
bash
# Example egress restriction using iptables on the HarnessRouter host
iptables -A OUTPUT -m owner --uid-owner harnessrouter -d 169.254.169.254 -j REJECT
iptables -A OUTPUT -m owner --uid-owner harnessrouter -d 127.0.0.0/8 -j REJECT
iptables -A OUTPUT -m owner --uid-owner harnessrouter -d 10.0.0.0/8 -j REJECT
iptables -A OUTPUT -m owner --uid-owner harnessrouter -d 172.16.0.0/12 -j REJECT
iptables -A OUTPUT -m owner --uid-owner harnessrouter -d 192.168.0.0/16 -j REJECT

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.