You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "rpamu-jdev (via GitHub)" <gi...@apache.org> on 2026/06/13 19:29:04 UTC
[PR] CAMEL-23524: camel-mail: change useHeader* options to default false (secure by default) [camel]
rpamu-jdev opened a new pull request, #24002:
URL: https://github.com/apache/camel/pull/24002
Changes the `useHeaderRecipients`, `useHeaderFrom`, `useHeaderReplyTo`, and `useHeaderSubject` options in `camel-mail` from `defaultValue=true` to `defaultValue=false`.
This is a security hardening change (similar to CAMEL-23522 / CVE-2025-27636). When default=true, untrusted exchange headers could silently override the recipients, sender, subject, or reply-to configured in the endpoint URI — a potential header injection vector.
With default=false, the endpoint URI configuration is always used unless the user explicitly opts in by setting the option to true in the URI.
**Changes:**
- `MailConfiguration.java`: set all 4 `useHeader*` options to `defaultValue = "false"` and label `producer,security`
- Updated affected tests to explicitly opt-in with `useHeader*=true` in the URI
- Added breaking change notice and migration guide to `camel-4x-upgrade-guide-4_21.adoc`
**Migration:** Users who rely on exchange headers overriding mail recipients/sender/subject/reply-to must explicitly add `useHeaderRecipients=true`, `useHeaderFrom=true`, `useHeaderSubject=true`, or `useHeaderReplyTo=true` to their endpoint URI.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] CAMEL-23524: camel-mail: change useHeader* options to default false (secure by default) [camel]
Posted by "rpamu-jdev (via GitHub)" <gi...@apache.org>.
rpamu-jdev commented on PR #24002:
URL: https://github.com/apache/camel/pull/24002#issuecomment-4701342048
Updated the generated files (JSON descriptors, DSL builders, and catalog) in the latest commit to reflect the defaultValue=false change for the useHeader* options.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] CAMEL-23524: camel-mail: change useHeader* options to default false (secure by default) [camel]
Posted by "rpamu-jdev (via GitHub)" <gi...@apache.org>.
rpamu-jdev closed pull request #24002: CAMEL-23524: camel-mail: change useHeader* options to default false (secure by default)
URL: https://github.com/apache/camel/pull/24002
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] CAMEL-23524: camel-mail: change useHeader* options to default false (secure by default) [camel]
Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus commented on PR #24002:
URL: https://github.com/apache/camel/pull/24002#issuecomment-4702245391
There are uncommitted changes
HEAD detached at pull/24002/merge
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/ImapComponentBuilderFactory.java
modified: dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/ImapsComponentBuilderFactory.java
modified: dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Pop3ComponentBuilderFactory.java
modified: dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Pop3sComponentBuilderFactory.java
modified: dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/SmtpComponentBuilderFactory.java
modified: dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/SmtpsComponentBuilderFactory.java
modified: dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/MailEndpointBuilderFactory.java
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] CAMEL-23524: camel-mail: change useHeader* options to default false (secure by default) [camel]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #24002:
URL: https://github.com/apache/camel/pull/24002#issuecomment-4701154576
:star2: Thank you for your contribution to the Apache Camel project! :star2:
:robot: CI automation will test this PR automatically.
:camel: Apache Camel Committers, please review the following items:
* First-time contributors **require MANUAL approval** for the GitHub Actions to run
* You can use the command `/component-test (camel-)component-name1 (camel-)component-name2..` to request a test from the test bot although they are normally detected and executed by CI.
* You can label PRs using `skip-tests` and `test-dependents` to fine-tune the checks executed by this PR.
* Build and test logs are available in the summary page. **Only** [Apache Camel committers](https://camel.apache.org/community/team/#committers) have access to the summary.
:warning: Be careful when sharing logs. Review their contents before sharing them publicly.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org