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-84176 Overview
CVE-2026-84176 is a permissive cross-domain policy vulnerability [CWE-942] in the Apache Camel Platform HTTP Vertx component. The flaw affects Apache Camel versions 4.0.0 through 4.18.4 and 4.19.0 through 4.22.0. The createCorsHandler() function sets the Access-Control-Allow-Credentials: true header outside the origin validation check. When camel.server.cors.origins is left unset, the handler reflects any caller's Origin back as Access-Control-Allow-Origin while also granting credentials. This produces a credentialed any-origin configuration that lets a page on any domain issue cross-origin requests to the Camel endpoint and read authenticated responses.
Critical Impact
Attackers hosting a malicious page can trick an authenticated victim's browser into making credentialed cross-origin requests to a vulnerable Camel endpoint and read the responses, exposing sensitive data accessible to the user's session.
Affected Products
- Apache Camel Platform HTTP Vertx component, versions 4.0.0 to 4.18.4
- Apache Camel Platform HTTP Vertx component, versions 4.19.0 to 4.22.0
- Apache Camel 4.18.x LTS and 4.22.x LTS release streams prior to the fixed patch versions
Discovery Timeline
- 2026-10-19 - CVE-2026-84176 published to NVD
- 2026-10-19 - Last updated in NVD database
Technical Details for CVE-2026-84176
Vulnerability Analysis
The vulnerability resides in the Cross-Origin Resource Sharing (CORS) handler built by the Apache Camel Platform HTTP Vertx component. The createCorsHandler() method emits Access-Control-Allow-Credentials: true for every response carrying an Origin header, including responses whose origin the handler already decided to reject. When camel.server.cors.origins is not configured, the handler treats every origin as allowed and echoes the caller's Origin value back in Access-Control-Allow-Origin.
These two behaviors combine to produce a credentialed any-origin CORS configuration. The Fetch specification refuses to express this as a literal wildcard precisely because it defeats the Same-Origin Policy for authenticated resources. Reflecting the origin is the standard way attackers bypass that restriction. A page hosted on any domain can make credentialed cross-origin requests to a vulnerable Camel endpoint and read the responses, including data tied to the victim's cookies or authorization tokens.
Root Cause
The root cause is incorrect placement of the credentials header assignment relative to the origin validation branch. The handler also lacked a Vary: Origin response header, meaning a shared cache could serve one origin's response to another. The default-permissive behavior when the origin list is unset compounds the issue.
Attack Vector
Exploitation requires an authenticated user to visit an attacker-controlled page while holding a valid session with a Camel HTTP endpoint. The attacker's JavaScript issues a fetch() call with credentials: 'include' targeting the Camel endpoint. The browser attaches the victim's cookies, the Camel server reflects the origin and sets credentials true, and the attacker's script reads the authenticated response body.
See the Apache Camel CVE-2026-84176 Advisory and Apache Camel Pull Request #25820 for the technical patch details.
Detection Methods for CVE-2026-84176
Indicators of Compromise
- HTTP responses from Camel endpoints containing both Access-Control-Allow-Credentials: true and an echoed Access-Control-Allow-Origin value that does not match any configured origin.
- Unexpected preflight OPTIONS requests originating from external referrers to Camel HTTP routes.
- Server access logs showing cross-origin requests with Origin headers from untrusted domains that received 2xx responses with session cookies attached.
Detection Strategies
- Inspect running Camel deployments for the camel.server.cors.origins property; absence of an explicit allowlist on vulnerable versions indicates exposure.
- Query software inventory for Apache Camel versions in the ranges 4.0.0–4.18.4 and 4.19.0–4.22.0 using the Platform HTTP Vertx component.
- Perform active HTTP probing against Camel endpoints with crafted Origin headers and verify whether the server reflects arbitrary origins alongside credentialed responses.
Monitoring Recommendations
- Forward Camel HTTP access logs and reverse-proxy logs to a centralized analytics platform and alert on CORS response anomalies.
- Monitor browser Content Security Policy (CSP) violation reports and web application firewall telemetry for unexpected cross-origin activity targeting Camel routes.
- Track configuration drift so that any deployment removing camel.server.cors.origins from configuration triggers a security review.
How to Mitigate CVE-2026-84176
Immediate Actions Required
- Upgrade Apache Camel to version 4.23.0, which contains the fix.
- Users on the 4.18.x LTS stream must upgrade to 4.18.5.
- Users on the 4.22.x LTS stream must upgrade to 4.22.1.
- Audit all Camel HTTP routes exposed to browsers and confirm camel.server.cors.origins is set to an explicit allowlist.
Patch Information
The fix changes the handler to send Access-Control-Allow-Credentials only when the request origin matches an origin the operator configured. With no origin list, the origin is still reflected for backward compatibility, but credentials are not granted. The handler now also sets Vary: Origin whenever the origin is reflected to prevent shared caches from serving one origin's response to another. Patch details are available in Apache Camel Pull Request #25820, Pull Request #25937, and Pull Request #25938. Tracking is in JIRA issue CAMEL-24436.
Workarounds
- Set camel.server.cors.origins to an explicit, comma-separated list of trusted origins rather than leaving it unset.
- Place a reverse proxy or API gateway in front of Camel that strips untrusted Origin headers and enforces its own CORS policy.
- Restrict network exposure of Camel HTTP endpoints to internal networks until upgrade is possible.
# Configuration example - explicit CORS allowlist for Camel
camel.server.cors.origins=https://app.example.com,https://admin.example.com
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

