# CVE-2026-59230: Apache Camel-Mail header injection via headersInline

Source: https://junglewise.ai/threats/cve-2026-59230-apache-camel-mail-header-injection-via-headersinline  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-08-24. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2026-59230 · Severity: medium · CVSS 6.5 · Published 2026-08-24

Apache Camel's mail component processes incoming email messages and converts them into data that integration routes can work with. When configured to expose email headers as message headers (headersInline mode), the component fails to filter Camel's internal control headers, allowing an attacker to craft a malicious email with specially-named headers that override route behavior—for example, redirecting SQL commands or changing message destinations. This could lead to data exposure, unauthorized database operations, or message routing to wrong endpoints depending on downstream components.

Technologies: [Apache Camel](https://junglewise.ai/threats/technologies/camel), [org.apache.camel:camel-mail (Maven)](https://junglewise.ai/threats/technologies/org-apache-camel-camel-mail). Vendors: [Apache](https://junglewise.ai/threats/vendors/apache), [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

**Is CVE-2026-59230 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-59230 being exploited in the wild.

**How severe is CVE-2026-59230?** Medium severity, with a CVSS score of 6.5, published 24 August 2026.

**Which products and versions are affected?** Apache Camel 2.17.0 to 4.14.8, 4.15.0 to 4.18.3, 4.19.0 to 4.21.x; org.apache.camel:camel-mail (Maven) ECOSYSTEM:introduced=2.17.0,fixed=4.14.9.

**Is there a fix for CVE-2026-59230?** Yes. org.apache.camel:camel-mail (Maven): upgrade to 4.14.9 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-59230 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-59230?** Check whether you run Apache Camel or org.apache.camel:camel-mail (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- org.apache.camel:camel-mail (Maven): upgrade to 4.14.9 or later

  ```sh
  # set org.apache.camel:camel-mail to 4.14.9 in your pom.xml or build.gradle
  ```


## Technical details

The vulnerability is an improper input validation flaw (CWE-20) in the camel-mail component's MimeMultipart data format. When headersInline is set to true during unmarshal operations, the code copies all MIME headers from the incoming message onto the Camel Exchange without applying a HeaderFilterStrategy. An attacker who can influence inbound email messages can inject headers with names in the Camel-internal namespace (e.g., "Camel-*" prefix) which are read as control directives by downstream Camel producers (e.g., camel-sql reads statement overrides from headers). The attack requires network-reachable mail input and headersInline to be explicitly enabled (non-default). Exploitation impact depends entirely on the route's downstream components: potential consequences include data exfiltration, SQL injection redirection, or cross-topic message writes. Patches are available in versions 4.14.9, 4.18.4, and 4.22.0. Workarounds include keeping headersInline at its default false value or explicitly stripping Camel-prefixed headers immediately post-unmarshal.

## Affected products

- Apache Camel 2.17.0 to 4.14.8, 4.15.0 to 4.18.3, 4.19.0 to 4.21.x
- Apache Camel-Mail 2.17.0 to 4.14.8, 4.15.0 to 4.18.3, 4.19.0 to 4.21.x

## Identifiers

- CVE-2026-59230
- GHSA-cx47-qxp5-mmh2

## Timeline

- 2026-08-24: disclosed: Vulnerability published to GitHub Advisory Database
- 2026-08-24: patched: Patches released: 4.14.9, 4.18.4, 4.22.0

## References

- [https://api.github.com/users/oscerd](https://api.github.com/users/oscerd)
- [https://github.com/oscerd](https://github.com/oscerd)
- [https://api.github.com/users/oscerd/gists%7B/gist_id%7D](https://api.github.com/users/oscerd/gists%7B/gist_id%7D)
- [https://api.github.com/users/oscerd/repos](https://api.github.com/users/oscerd/repos)
- [https://avatars.githubusercontent.com/u/5106647?v=4](https://avatars.githubusercontent.com/u/5106647?v=4)
- [https://api.github.com/users/oscerd/events%7B/privacy%7D](https://api.github.com/users/oscerd/events%7B/privacy%7D)

## Related threats

- [Apache Camel SSRF in A2A webhook validator](https://junglewise.ai/threats/cve-2026-71569-server-side-request-forgery-ssrf-vulnerability-in-apache-camel)
- [Apache Camel OAuth component cache containing sensitive information](https://junglewise.ai/threats/cve-2026-94386-use-of-cache-containing-sensitive-information-vulnerability-in)
- [Apache Camel Saxon component XXE in XQuery evaluation](https://junglewise.ai/threats/cve-2026-90885-improper-restriction-of-xml-external-entity-reference)
- [Apache Camel AWS2-S3 expression language injection in key handling](https://junglewise.ai/threats/cve-2026-95664-improper-neutralization-of-special-elements-used-in-an-expression)
- [Apache Camel Keycloak security policy token expiration bypass](https://junglewise.ai/threats/cve-2026-95663-insufficient-session-expiration-vulnerability-in-apache-camel)
