Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') Affecting org.apache.camel:camel-mail package, versions [2.17.0,4.14.9)[4.15.0,4.18.4)[4.19.0,4.22.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.42% (35th 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-19318913
  • published27 Aug 2026
  • disclosed24 Aug 2026
  • creditUnknown

Introduced: 24 Aug 2026

NewCVE-2026-59230  (opens in a new tab)
CWE-74  (opens in a new tab)

How to fix?

Upgrade org.apache.camel:camel-mail to version 4.14.9, 4.18.4, 4.22.0 or higher.

Overview

org.apache.camel:camel-mail is a Camel Mail support.

Affected versions of this package are vulnerable to Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') in the unmarshal process when headersInline is enabled. An attacker can manipulate downstream processing or control application behavior by injecting specially crafted MIME headers that are copied into the internal message headers without filtering. This is only exploitable if headersInline is explicitly set to true.

Workaround

This vulnerability can be mitigated by leaving headersInline at its default value of false, stripping Camel-internal headers immediately after the unmarshal step (for example, using removeHeaders("Camel*") before any processor or producer that reads control headers), and avoiding the unmarshalling of MIME content from untrusted senders into routes that dispatch on header values.

References

CVSS Base Scores

version 4.0
version 3.1