[Cosmos][Kafka] Address jackson / netty / log4j CVEs in azure-cosmos-kafka-connect#49150
Draft
tvaron3 wants to merge 1 commit into
Draft
[Cosmos][Kafka] Address jackson / netty / log4j CVEs in azure-cosmos-kafka-connect#49150tvaron3 wants to merge 1 commit into
tvaron3 wants to merge 1 commit into
Conversation
* Bump test-scope log4j-api/core/slf4j-impl to 2.25.3 to address CVE-2025-68161 * Pick up patched jackson-core 2.18.6 and netty-codec-http/http2 4.1.132.Final transitively via azure-cosmos 4.81.0-beta.1 (addresses GHSA-72hv-8253-57qq, CVE-2026-33870, CVE-2025-67735, CVE-2026-33871) * Introduce cosmos_-prefixed log4j tokens in external_dependencies.txt so the kafka connector can move ahead of the global 2.17.2 pin without disturbing other cosmos modules Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Addresses the following CVEs reported against the published
microsoftcorporation-kafka-connect-cosmosv1.18.0 connector for theazure-cosmos-kafka-connectmodule.com.fasterxml.jackson.core:jackson-coreazure-cosmos4.81.0-beta.1 (azure-core 1.58.0 pins jackson-core 2.18.6)io.netty:netty-codec-httpazure-core-http-netty1.16.4io.netty:netty-codec-httpio.netty:netty-codec-http2org.apache.logging.log4j:log4j-corecosmos_*-prefixed tokens in this PRChanges
eng/versioning/external_dependencies.txt— add threecosmos_org.apache.logging.log4j:*tokens at2.25.3so the kafka connector can advance independently of the global2.17.2pin used elsewhere (this mirrors the existing pattern forcosmos_org.apache.kafka:*,cosmos_io.confluent:*, etc.).sdk/cosmos/azure-cosmos-kafka-connect/pom.xml— switch the threelog4j-*test-scope dependencies to the new tokens at2.25.3. No other cosmos modules are affected.sdk/cosmos/azure-cosmos-kafka-connect/CHANGELOG.md— document the CVE fixes under the existing2.11.0-beta.1entry.Why not pin jackson / netty explicitly?
azure-cosmosalready aligns the full jackson and netty families to patched versions. Adding explicit pins here would (a) duplicate the alignment point, (b) risk version skew againstjackson-databind/jackson-annotations/ the rest of the netty family which are also managed transitively, and (c) be silently overridden byazure-cosmosbumps in the future. Letting the transitive chain do the work is the lower-risk option.Scope notes
log4j-api,log4j-core, andlog4j-slf4j-implare<scope>test</scope>inpom.xml. They are not shaded into the published uber jar (maven-shade-plugindoes not include test scope by default). The bump is purely to satisfy SBOM scanners that read the dependency-reduced POM published by the shade plugin.azure-cosmos-kafka-connect-1.0.0-beta.5.jarfiles that may appear locally undersrc/docker/connectors/andsrc/test/connectorPlugins/connectors/are gitignored and never published —build.shdeletes and rebuilds them before integration tests run. No action needed.Validation
eng/versioning/pom_file_version_scanner.ps1— passes (version comments matchexternal_dependencies.txt).packagebuild was attempted but could not complete due to ADO feed auth in this dev environment (com.azure:azure-cosmos:pom:4.81.0-beta.1returns 401). The repo pipeline will exercise the full build.Related
Equivalent fixes may be needed in the standalone Confluent Hub v1 connector repo (out of scope for this PR).