When Steeltoe's certificate-based authorization (UseCertificateAuthorization) is configured, the default configuration of the middleware relies on the X-Client-Cert HTTP header to identify the client certificate, without verifying private-key possession. This header is not stripped by common Cloud Foundry routers (like Gorouter or Envoy) on inbound requests.
An attacker who obtains the public certificate of an application instance in the target organization or space can spoof the X-Client-Cert header. This allows the attacker to bypass SameOrg and SameSpace authorization policies, granting unauthorized access to protected endpoints for the duration of the certificate's validity period.
AddOrgAndSpacePolicies() and UseCertificateAuthorization() for inter-service authorization.If an immediate upgrade to a patched version is not possible:
UseCertificateForwarding to trusted proxy source IPs using ForwardedHeadersOptions.KnownProxies and KnownNetworks.X-Forwarded-Client-Cert so that Cloud Foundry Gorouter and Envoy header stripping mechanisms apply to inbound untrusted requests..apps.internal) and container-to-container network policies to strictly limit network access to intended internal clients.{
"cwe_ids": [
"CWE-288",
"CWE-295"
],
"github_reviewed": true,
"github_reviewed_at": "2026-09-17T20:30:58Z",
"nvd_published_at": "2026-09-17T16:17:47Z",
"severity": "MODERATE"
}