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-114361 Overview
CVE-2026-114361 is an improper authorization vulnerability in HarnessRouter versions up to 0.31.10. The flaw resides in the gateway/app.py file within the Identity Mode component. Attackers can manipulate the X-Harness-Org and X-Harness-Member HTTP headers to assert arbitrary organization and member identities. The gateway trusted self-asserted identity headers by default, allowing a request carrying any bearer token to claim membership in any organization. The vulnerability is categorized under [CWE-266: Incorrect Privilege Assignment]. Exploitation is network-based but reported as high complexity. Upgrading to version 0.31.11 resolves the issue through commit 48a26cdf9c4544d2c88d1a07f0777f063f1d753f.
Critical Impact
Remote attackers can bypass authorization controls by injecting identity headers, potentially impersonating any organization or member in multi-tenant HarnessRouter deployments.
Affected Products
- HarnessRouter versions up to and including 0.31.10
- HarnessRouter gateway/app.py Identity Mode component
- Multi-tenant deployments where HR_IDENTITY_MODE was unset or set to a trusting default
Discovery Timeline
- 2026-10-21 - CVE-2026-114361 published to NVD
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2026-114361
Vulnerability Analysis
The vulnerability stems from how HarnessRouter's gateway handled self-asserted identity headers. In affected releases, the HR_IDENTITY_MODE environment variable defaulted to observe, which preserved header trust while only logging anomalies. A client supplying X-Harness-Org and X-Harness-Member headers alongside any Authorization bearer could assert membership in a target organization without proper validation.
The downstream console attached an internal key to every request carrying an Authorization header. Because the gateway trusted the identity headers by default, a request with a junk bearer token combined with crafted identity headers was accepted as authenticated. This breaks the tenant isolation boundary that multi-tenant operators depend on.
The advisory GHSA-qrr8-m92f-7vfp documents that the issue was reported privately before the fix landed.
Root Cause
The root cause is an insecure default for the identity trust mode. The gateway treated the presence of an Authorization header as sufficient to accept identity assertions from client-controlled headers, without validating that the bearer token was itself valid or that the asserted identity matched the token's claims.
Attack Vector
An attacker reaches the gateway over the network and sends an HTTP request containing arbitrary X-Harness-Org and X-Harness-Member header values along with any Authorization header. The gateway accepts the asserted identity and routes the request as if it originated from the claimed organization and member, enabling cross-tenant access.
# service-to-service (the engine executor) and keep header trust — key possession is the service
# credential. Modes: observe (count/log, keep header trust) -> enforce (claims are authoritative;
# key + a present-but-invalid Authorization is REJECTED).
-HR_IDENTITY_MODE = os.environ.get("HR_IDENTITY_MODE", "observe")
+#
+# Unset, or anything but "off" or "observe", means enforce. A console that is not in self-hosted mode
+# attaches the internal key to every request that carries an Authorization header, so a gateway that
+# trusted the identity headers by default let a junk bearer assert any organization and member
+# (reported privately, GHSA-qrr8-m92f-7vfp). The self-hosted entrypoint sets "off" on purpose: its
+# console pins the one organization and gives the key only to a signed-in session. "observe" is a
+# migration step a multi-tenant operator chooses, never a default.
+HR_IDENTITY_MODE = {"off": "off", "observe": "observe"}.get(os.environ.get("HR_IDENTITY_MODE", "").strip().lower(), "enforce")
AUTH_JWT_SECRET = os.environ.get("AUTH_JWT_SECRET", "")
Source: HarnessRouter Commit Details. The patch flips the default from observe to enforce, making header-asserted claims authoritative only when the Authorization token is valid.
Detect Identity Attacks the Moment Authentication Fails
Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.
Stop Identity AttacksDetection Methods for CVE-2026-114361
Indicators of Compromise
- Gateway access logs showing requests with X-Harness-Org or X-Harness-Member headers from unexpected source IPs or user agents.
- Requests where the asserted organization in headers does not match the organization associated with the bearer token.
- Anomalous spikes in cross-organization resource access patterns in HarnessRouter audit logs.
Detection Strategies
- Review HarnessRouter gateway logs for requests presenting Authorization headers with malformed or unverifiable bearers alongside identity headers.
- Correlate X-Harness-Member values with authenticated session identifiers to identify mismatches.
- Enable the observe mode in HarnessRouter during remediation planning to log identity-claim anomalies before enforcing.
Monitoring Recommendations
- Alert on any inbound request to gateway/app.py endpoints that includes identity headers but originates outside trusted service-to-service networks.
- Monitor the HR_IDENTITY_MODE environment variable across deployed instances to confirm it is set to enforce or off.
- Track CVE-2026-114361 exposure using the EPSS value published by VulDB CVE-2026-114361 and adjust prioritization as it changes.
How to Mitigate CVE-2026-114361
Immediate Actions Required
- Upgrade HarnessRouter to version 0.31.11 or later as described in the HarnessRouter Release v0.31.11 notes.
- Explicitly set HR_IDENTITY_MODE=enforce on all multi-tenant deployments until the upgrade is complete.
- Review audit logs for suspicious use of X-Harness-Org and X-Harness-Member headers in the exposure window.
Patch Information
The fix is tracked in HarnessRouter Pull Request #426 and landed as commit 48a26cdf9c4544d2c88d1a07f0777f063f1d753f. The patch changes the default identity mode so that unset or unrecognized values resolve to enforce, rejecting requests that present an invalid Authorization header while asserting identity through headers. Full advisory details are available in GitHub Security Advisory GHSA-qrr8-m92f-7vfp.
Workarounds
- Set HR_IDENTITY_MODE=off on self-hosted single-tenant deployments where the console pins a single organization.
- Place HarnessRouter behind a reverse proxy that strips client-supplied X-Harness-Org and X-Harness-Member headers before they reach the gateway.
- Restrict gateway network exposure to internal service-to-service traffic until the upgrade to 0.31.11 is applied.
# Configuration example — explicitly set enforce mode before upgrading
export HR_IDENTITY_MODE=enforce
# For single-tenant self-hosted deployments
export HR_IDENTITY_MODE=off
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

