CVE-2026-66908: Apache Camel: Camel-platform-http-main: when JWT authentication was configured with a keystore but no issuer or audience, the iss and aud claims were never validated, so any unexpired token signed by a trusted key was accepted

Published Aug 24, 2026
·
Updated

Improper Authentication vulnerability in Apache Camel Platform HTTP Main component.

This issue affects Apache Camel: from 4.8.0 before 4.22.0.

The camel-main embedded HTTP server can protect its endpoints with JWT authentication, configured through authenticationEnabled together with the JWT keystore properties. JWTAuthenticationConfigurer.buildJwtOptions returned null when neither jwtIssuer nor jwtAudience was configured, and the caller then skipped the JWTAuthOptions.setJWTOptions call entirely, so the Vert.x JWTAuth instance was built from the keystore alone. The result was that inbound tokens were checked only for signature and expiry: the iss and aud claims were not validated at all. Nothing signalled this - the server started normally and reported no warning - so a deployment configured the documented way silently enforced less than the operator believed it had enabled, and the component documentation itself presented signature and expiry checking as the default with issuer and audience as an optional extra. Both the application server and the management server were affected, because the omission was in each of the two configureAuthentication paths. Any unexpired token signed by any key the configured keystore trusts was therefore accepted, regardless of which issuer minted it or which audience it was intended for. How far that reaches depends on the trust set of the keystore: where the signing key belongs to a shared or multi-tenant identity provider, a token legitimately issued for an entirely different audience is accepted, while a keystore holding a dedicated signer narrows it to reuse of tokens minted for other services within the same trust domain. The jwtIssuer and jwtAudience options did not exist before 4.21.0, so on earlier releases there was no supported way to have these claims enforced at all.

Users are recommended to upgrade to version 4.22.0, which fixes the issue. From 4.22.0 the server refuses to start when a JWT keystore is configured but neither jwtIssuer nor jwtAudience is set, naming the properties involved, and a deployment that genuinely wants signature and expiry validation only must say so explicitly with the new jwtAllowMissingIssuerAndAudience option, which defaults to false. This behaviour is fixed only on 4.22.0. The 4.14.9 and 4.18.4 releases do not change the default: they add the jwtIssuer and jwtAudience options so that operators on those maintenance lines can enforce the claims by configuration, and an installation that upgrades to 4.14.9 or 4.18.4 without also setting at least one of those two properties is still accepting any unexpired token signed by a trusted key. Users on 4.14.x or 4.18.x should therefore upgrade to 4.14.9 or 4.18.4 and then set jwtIssuer, jwtAudience, or both. Releases from 4.8.0 up to and including 4.21.x offer no way to enforce these claims and should be moved to a version that does. Independently of version, restrict the JWT keystore to the smallest possible trust set - ideally a signer dedicated to this service rather than a shared identity-provider key - and where a gateway already validates issuer and audience in front of the server, ensure it cannot be bypassed.

Notes:

The JIRA ticket:  https://issues.apache.org/jira/browse/CAMEL-24281  refers to the various commits that resolved the issue, and has more details.

The fail-closed guard could not be backported. The jwtIssuer and jwtAudience options were themselves only introduced in 4.21.0 by CAMEL-23525, so on camel-4.18.x and camel-4.14.x there was nothing an operator could set to satisfy the requirement and the guard would have broken every JWT deployment on those branches with no remedy available.

Affected Software

2 affected components
Apache Camel Platform HTTP Main>4.8.0<=4.21.x
Apache Camel Platform HTTP Main>4.22.0<4.22.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Apache Camel camel-main (Platform HTTP Main component) to a version that resolves this vulnerability.

    Fixed in 4.22.0Patch CVE-2026-66908
  2. Upgrade

    Upgrade Apache Camel camel-main (Platform HTTP Main component) to a version that resolves this vulnerability.

    Fixed in 4.14.9Patch CVE-2026-66908
  3. Upgrade

    Upgrade Apache Camel camel-main (Platform HTTP Main component) to a version that resolves this vulnerability.

    Fixed in 4.18.4Patch CVE-2026-66908
  4. Configuration

    After upgrading to 4.14.9 (from 4.14.x lines) or 4.18.4 (from 4.18.x lines), set the JWT issuer configuration property jwtIssuer so iss claims are validated; otherwise upgrades to these versions without setting at least one of jwtIssuer or jwtAudience will still accept any unexpired token signed by a trusted key.

    Apache Camel Platform HTTP Main (Camel main embedded HTTP server) JWTAuthenticationConfigurer jwtIssuer = set
  5. Configuration

    After upgrading to 4.14.9 (from 4.14.x lines) or 4.18.4 (from 4.18.x lines), set the JWT audience configuration property jwtAudience so aud claims are validated; otherwise upgrades to these versions without setting at least one of jwtIssuer or jwtAudience will still accept any unexpired token signed by a trusted key.

    Apache Camel Platform HTTP Main (Camel main embedded HTTP server) JWTAuthenticationConfigurer jwtAudience = set
  6. Configuration

    Ensure jwtAllowMissingIssuerAndAudience is left at its default false. Setting this option true explicitly permits deployments that intend to avoid issuer/audience validation even though the server will refuse to start when jwtIssuer and jwtAudience are both unset (since 4.22.0).

    Apache Camel Platform HTTP Main (Camel main embedded HTTP server) jwtAllowMissingIssuerAndAudience = false
  7. Compensating control

    Independently of version, restrict the JWT keystore to the smallest possible trust set: use a signer dedicated to this service rather than a shared identity-provider key, so tokens minted for other audiences are not accepted based on shared trust. Also, if a gateway already validates issuer and audience in front of the server, ensure it cannot be bypassed.

Event History

Aug 24, 2026
CVE Published
via MITRE·04:14 PM
Data Sourced
via MITRE·04:14 PM
DescriptionWeakness
Data Sourced
via NVD·05:18 PM
DescriptionWeakness

Frequently Asked Questions

1

Which deployments are affected?

Apache Camel Platform HTTP Main is affected from version 4.8.0 before 4.22.0 when JWT authentication is enabled with a JWT keystore and neither jwtIssuer nor jwtAudience is configured. Both the embedded application server and the management server are affected.

2

What must an attacker have to bypass the intended claim restrictions?

An attacker needs an unexpired JWT signed by a key trusted through the configured keystore. In the affected configuration, signature and expiry are checked, but issuer and audience claims are not validated.

3

How can I determine whether a running deployment may be affected?

Review the JWT authentication configuration for authenticationEnabled and JWT keystore properties, then check whether both jwtIssuer and jwtAudience are absent. Server startup and logs do not provide a warning for this condition.

4

Is a configuration with an issuer or audience setting affected by this specific omission?

The described omission occurs when neither jwtIssuer nor jwtAudience is configured. The vulnerable code returned null in that case and skipped applying JWT options entirely.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203