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-85251 Overview
CVE-2026-85251 is an information disclosure vulnerability in the Apache Camel HTTP component. The flaw affects Apache Camel versions 4.0.0 through 4.18.4 and 4.19.0 through 4.22.0. When followRedirects=true is configured on an HTTP endpoint, credentials attached to outbound requests are re-sent to redirect targets chosen by the remote server. Both OAuth2 bearer tokens and basic or digest credentials are affected. A remote endpoint that answers with a redirect to an attacker-controlled host can harvest the configured credentials. The issue is tracked under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Critical Impact
Attackers controlling or influencing an HTTP endpoint responding to Camel routes can capture OAuth2 bearer tokens or basic/digest credentials by returning a redirect to a host they control.
Affected Products
- Apache Camel 4.0.0 through 4.18.4
- Apache Camel 4.19.0 through 4.22.0
- Apache Camel HTTP component with followRedirects=true
Discovery Timeline
- 2026-10-19 - CVE CVE-2026-85251 published to NVD
- 2026-10-19 - Last updated in NVD database
Technical Details for CVE-2026-85251
Vulnerability Analysis
The Apache Camel HTTP component relies on Apache HttpClient to perform outbound HTTP requests. Two independent credential-handling paths leak secrets across redirect hops when followRedirects=true is enabled on a route endpoint.
The first path involves OAuth2. OAuth2ClientConfigurer registers its authentication interceptor using addRequestInterceptorFirst. Apache HttpClient executes protocol-level request interceptors inside ProtocolExec, which sits below RedirectExec in the executor chain. The interceptor therefore runs again for every redirect hop and re-attaches the Authorization: Bearer <token> header to whatever host the Location response header specifies.
The second path involves basic and digest authentication. Credentials were registered against an AuthScope that matches any host. HttpClient consequently presents the configured basic or digest credentials to the redirect target as well as the originally configured authority.
Root Cause
The root cause is a scoping failure in credential binding. The OAuth2 interceptor was registered at the protocol layer rather than above RedirectExec, and basic/digest AuthScope entries were defined with wildcard host matching. Neither mechanism restricted credential attachment to the originally configured endpoint authority.
Attack Vector
An attacker who controls, compromises, or can influence the response of a remote HTTP endpoint invoked by a Camel route returns an HTTP redirect response. The Location header points to an attacker-controlled host. Camel follows the redirect and re-sends the Authorization header to the attacker's server. The attacker reads the bearer token or credentials from the inbound request. No authentication or user interaction is required at the Camel side.
The vulnerability is described in prose only; see the Apache Camel CVE-2026-85251 Advisory and GitHub Pull Request #25830 for the code-level fix.
Detection Methods for CVE-2026-85251
Indicators of Compromise
- Outbound HTTP requests from Camel hosts to unexpected external domains carrying Authorization: Bearer or Authorization: Basic headers.
- HTTP 3xx responses from upstream endpoints followed by requests to a different authority within the same Camel exchange.
- Camel route logs showing followRedirects=true on endpoints configured with OAuth2, basic, or digest credentials.
Detection Strategies
- Inventory all Camel routes and extract HTTP endpoint URIs where followRedirects=true is set alongside credential configuration.
- Inspect egress proxy or network telemetry for cross-domain redirects originating from Camel-based integration services.
- Monitor identity providers for OAuth2 token use from unexpected source IPs that may indicate token exfiltration.
Monitoring Recommendations
- Forward Camel application logs and egress HTTP metadata into a centralized analytics platform for correlation of redirect patterns.
- Alert on bearer tokens issued to Camel service accounts being presented from IP ranges outside the expected integration subnet.
- Baseline the set of hostnames contacted by each Camel route and flag deviations introduced after a 3xx response.
How to Mitigate CVE-2026-85251
Immediate Actions Required
- Upgrade Apache Camel to version 4.23.0, or to 4.18.5 on the 4.18.x LTS stream, or to 4.22.1 on the 4.22.x LTS stream.
- Rotate any OAuth2 bearer tokens, basic authentication passwords, and digest credentials used by Camel HTTP routes that had followRedirects=true enabled.
- Audit outbound HTTP traffic logs for evidence of unexpected redirect targets receiving credentialed requests.
Patch Information
The fix is delivered in Apache Camel 4.23.0, 4.22.1, and 4.18.5. After the patch, credentials are sent only to the authority the endpoint was configured with and are not re-attached when a redirect crosses to another host. See GitHub Pull Request #25830, GitHub Pull Request #25937, GitHub Pull Request #25938, and Apache JIRA CAMEL-24452 Issue for the implementation details.
Workarounds
- Set followRedirects=false on all Camel HTTP endpoints that carry credentials until upgrade is possible.
- Handle any required redirects explicitly in the route so the destination is chosen by the route rather than by the remote server.
- Restrict egress from Camel hosts via network policy so outbound HTTP calls can only reach the expected authorities.
# Configuration example: disable automatic redirect following on credentialed endpoints
# Camel HTTP endpoint URI
to("https://api.example.com/resource?followRedirects=false&authMethod=Basic&authUsername=svc&authPassword=RAW(...)")
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

