Cross-site Request Forgery (CSRF) Affecting org.apache.camel:camel-oauth package, versions [4.11.0,4.18.5)[4.19.0,4.22.1)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.18% (8th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-ORGAPACHECAMEL-21429954
  • published22 Oct 2026
  • disclosed19 Oct 2026
  • creditClaude Security

Introduced: 19 Oct 2026

NewCVE-2026-84178  (opens in a new tab)
CWE-352  (opens in a new tab)

How to fix?

Upgrade org.apache.camel:camel-oauth to version 4.18.5, 4.22.1 or higher.

Overview

Affected versions of this package are vulnerable to Cross-site Request Forgery (CSRF) via the OAuthCodeFlowCallback in the camel-oauth component. An attacker can silently sign a victim into an attacker-controlled account by obtaining an authorization code in their own browser and inducing the victim’s browser to send it to the callback, which redeems the code and associates the resulting profile with the session without verifying that the session started the authorization flow; the victim’s subsequent actions and submitted data then go to the attacker’s account. The callback also allows the post-authentication redirect target to be influenced, enabling an open redirect from the trusted origin.

Notes

  • The cross-site callback can carry the victim’s OAuth session because the session cookie is configured SameSite=None; Secure, allowing the browser to send it with a cross-site request.

Workarounds

  • For deployments that cannot upgrade immediately, terminate the authorization-code flow in a component that performs its own state binding instead of relying on Camel’s callback; this prevents an attacker-obtained authorization code from being attached to a victim’s session.

CVSS Base Scores

version 4.0
version 3.1