Incomplete Filtering of Special Elements Affecting org.apache.camel:camel-mail package, versions [4.0.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.37% (30th 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-21430136
  • published22 Oct 2026
  • disclosed19 Oct 2026
  • creditClaude Security

Introduced: 19 Oct 2026

NewCVE-2026-85314  (opens in a new tab)
CWE-791  (opens in a new tab)

How to fix?

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

Overview

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

Affected versions of this package are vulnerable to Incomplete Filtering of Special Elements via MimeMultipartDataFormat in the camel-mail component. An external sender can supply a multipart message with mail.smtp.* or mail.smtps.* headers that are copied onto the Exchange during inline-header unmarshalling. If the route passes that Exchange to a downstream mail producer, the attacker can influence how it connects and sends mail.

Notes

  • The injection path requires a route to use MimeMultipartDataFormat with headersInline enabled; otherwise multipart headers are not copied onto the Exchange.

Workarounds

  • After MimeMultipartDataFormat unmarshalling, remove mail.smtp* headers with removeHeaders("mail.smtp*") before any mail producer to prevent attacker-supplied SMTP properties from influencing how it connects and sends mail.

CVSS Base Scores

version 4.0
version 3.1