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

CVE-2026-85313: Apache Camel Jetty CSRF Vulnerability

CVE-2026-85313 is a cross-site request forgery flaw in Apache Camel Jetty component that allows unrestricted cross-origin requests with credentials. This post explains its impact, affected versions, and mitigation steps.

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-85313 Overview

CVE-2026-85313 is a permissive cross-domain policy vulnerability in the Apache Camel Jetty component. Setting enableCORS on a Jetty endpoint installed Jetty's CrossOriginFilter with its stock defaults, which accept every origin and allow credentials. Operators enabling Cross-Origin Resource Sharing (CORS) received an allow-all policy without any indication that the option had chosen permissive defaults rather than an empty baseline to configure. The flaw is classified under [CWE-942: Permissive Cross-domain Policy with Untrusted Domains]. Affected releases include Apache Camel from 4.0.0 before 4.18.5 and from 4.19.0 before 4.22.1.

Critical Impact

A page on any origin can make credentialed cross-origin requests to a Camel Jetty endpoint and read the responses, exposing authenticated session data to attacker-controlled web pages.

Affected Products

  • Apache Camel 4.0.0 through 4.18.4 (LTS stream)
  • Apache Camel 4.19.0 through 4.22.0 (LTS stream)
  • Apache Camel Jetty component with enableCORS configured

Discovery Timeline

  • 2026-10-19 - CVE-2026-85313 published to the National Vulnerability Database (NVD)
  • 2026-10-19 - Last updated in NVD database

Technical Details for CVE-2026-85313

Vulnerability Analysis

The Apache Camel Jetty component exposes an enableCORS option intended to allow operators to turn on CORS handling for HTTP endpoints. When set, Camel installed Jetty's CrossOriginFilter using its stock default configuration. Those defaults accept every origin and allow credentials to be sent with cross-origin requests.

As a result, any web page loaded in a victim's browser could issue a credentialed fetch or XMLHttpRequest to the Camel endpoint. The browser attaches cookies or HTTP authentication headers, and the response headers permit the calling script to read the response body. This exposes authenticated data to any origin the attacker controls.

The advisory notes this is the same defect class as the platform-http-vertx advisory published alongside it, in a different Camel component.

Root Cause

The root cause is an insecure default configuration [CWE-942]. The enableCORS toggle acted as an alias for "install the filter with its library defaults" rather than "install the filter with a safe empty baseline that the operator will populate." Operators had no indication that the convenience flag selected an allow-all policy with credentials enabled.

Attack Vector

Exploitation requires user interaction: the victim must visit an attacker-controlled web page while holding an authenticated session with the Camel-hosted service. The attacker's page issues a credentialed cross-origin request to the Jetty endpoint. The permissive CORS response headers allow the attacker's JavaScript to read sensitive data returned by the endpoint. No authentication to the Camel service is required by the attacker, and the attack is network-reachable.

The vulnerability does not allow modification of server state beyond what the existing endpoints permit, nor does it affect availability. Impact is limited to confidentiality of data accessible to the victim's authenticated session.

No verified public proof-of-concept code is available. See the Apache Camel CVE-2026-85313 Advisory for technical details.

Detection Methods for CVE-2026-85313

Indicators of Compromise

  • HTTP responses from Camel Jetty endpoints containing Access-Control-Allow-Origin: * paired with Access-Control-Allow-Credentials: true, which is a non-standard and insecure combination
  • Unexpected cross-origin OPTIONS preflight requests to Camel endpoints originating from untrusted referrers
  • Access logs showing authenticated requests to Jetty endpoints with Origin headers from unknown third-party domains

Detection Strategies

  • Inventory Camel routes and configurations for the Jetty component with enableCORS=true, and flag any instance running an affected version
  • Scan deployed endpoints with HTTP probes to confirm whether responses include permissive CORS headers combined with credential allowance
  • Review source repositories for jetty: endpoint URIs that pass enableCORS without an accompanying explicit CrossOriginFilter origin list

Monitoring Recommendations

  • Alert on web application firewall or reverse proxy logs when response headers contain Access-Control-Allow-Credentials: true with a wildcard or echoed arbitrary origin
  • Track Camel application versions in asset inventory and raise alerts for any deployment still running 4.0.0–4.18.4 or 4.19.0–4.22.0
  • Correlate unusual browser-originated requests to internal Camel endpoints with user session telemetry to spot cross-origin data exfiltration attempts

How to Mitigate CVE-2026-85313

Immediate Actions Required

  • Upgrade Apache Camel to 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
  • Audit every Jetty endpoint using enableCORS and document the required allowed origins before upgrading, because the fixed versions no longer grant credentials to unnamed origins
  • For deployments that previously relied on wildcard origin acceptance, replace that behavior with an explicit origin allow-list

Patch Information

Apache Camel 4.23.0 fixes the issue. LTS users should upgrade to 4.18.5 (4.18.x stream) or 4.22.1 (4.22.x stream). In patched releases, enableCORS no longer grants credentials to an origin the operator did not name. Fix details are available in Apache Camel Pull Request #25829, Pull Request #25937, Pull Request #25938, and JIRA Issue CAMEL-24450.

Workarounds

  • For deployments that cannot upgrade immediately, configure the Jetty CrossOriginFilter parameters explicitly rather than relying on what enableCORS installs
  • Explicitly name allowed origins through filter parameters such as allowedOrigins, and set allowCredentials only when strictly required
  • Place a reverse proxy or API gateway in front of affected Jetty endpoints to strip or override permissive CORS response headers until patching is complete
bash
# Configuration example - explicit CrossOriginFilter settings
# Replace enableCORS=true with an explicitly configured filter
jetty:http://0.0.0.0:8080/service?filtersRef=corsFilter

# Spring bean definition for the filter with named origins
# <bean id="corsFilter" class="org.eclipse.jetty.servlets.CrossOriginFilter">
#   <property name="allowedOrigins" value="https://trusted.example.com"/>
#   <property name="allowCredentials" value="true"/>
#   <property name="allowedMethods" value="GET,POST,OPTIONS"/>
# </bean>

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.