Manish Jain
12/09/2025, 9:43 AM<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-connector-kafka</artifactId>
<version>3.4.0-1.20</version>
</dependency>
This version of kafka client has 2 vulnerabilities. These vulnerabilities are only fixed in v3.9.1 of kafka clients.
We are wondering how to handle this? Is it recommended to exclude the kafka-client from the connector and then override it with the new version of kafka-client.
We are afraid that it might not be as easy as it sounds. π
Is running the test cases for Flink sufficient to verify that the new version is flink compatible. Or are there other things we'd keep in my while doing this upgrade.
PS: In the longer run, we might upgrade to Flink 2.0, but right now that is not on our plans.Thomas Cooper
12/09/2025, 12:03 PMThomas Cooper
12/09/2025, 12:04 PMThomas Cooper
12/09/2025, 12:05 PMmvn clean deploy -U -B --no-transfer-progress -Dflink.version=1.20.0 \
-DaltDeploymentRepository=validation_repository::default::file:/tmp/flink-validation-deployment \
-Dscala-2.12 \
-Prun-end-to-end-tests -DdistDir=<path to folder containing flink dist> \
-Dflink.convergence.phase=install -Pcheck-convergence \
-Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 \
-Dlog4j.configurationFile="file://$(pwd)/tools/ci/log4j.properties" \
| tee /tmp/mvn_build_output.outThomas Cooper
12/09/2025, 12:07 PMv3.4 branch it the kafka connector repo. Maybe with a bump to flink 1.20.3 as well. This is a good argument for a 3.4.1 release of the connector to cover flink 1.20.x users which you could raise on the flink dev mailing list.Manish Jain
12/09/2025, 12:08 PMManish Jain
12/15/2025, 10:02 AM@Deprecated , which are implementing the Producer interface. Two new methods have been added in this Interface, due to which the compilation fails. Will maybe later invest some more time to understand how to implement these methods properly. π