From 3fb0a7b7f6f7377ea48f5a979ef37534eaa8e3a7 Mon Sep 17 00:00:00 2001 From: Javier Aliaga Date: Thu, 8 Oct 2026 08:40:55 +0200 Subject: [PATCH] fix: Upgrade dependencies with known CVEs (#1821) * fix: Upgrade dependencies with known CVEs Jackson 2.21.7, Jackson 3 3.1.7, Netty 4.2.17.Final, Spring Boot 4.0.8, OpenTelemetry 1.62.0 and Tomcat 11.0.25. The OpenTelemetry and Jackson BOMs are imported before the Spring Boot BOM, including in the modules that import the Spring Boot 4 BOM locally, so they are not overridden. Signed-off-by: Javier Aliaga * fix: Manage OpenTelemetry in dapr-sdk-bom durabletask-client and dapr-sdk-workflows expose opentelemetry-api, and Spring Boot 4.0.8 manages OpenTelemetry 1.55.0. Import opentelemetry-bom 1.62.0 in dapr-sdk-bom so consumers that import it before the Spring Boot BOM get the patched version. Signed-off-by: Javier Aliaga --------- Signed-off-by: Javier Aliaga (cherry picked from commit b5c4d2fe21af9e672fcd751b09922136d4c46a82) --- .../dapr-spring-boot-autoconfigure/pom.xml | 19 +++++++++- .../dapr-spring-boot-starter-test/pom.xml | 17 ++++++++- .../dapr-spring-boot-starter/pom.xml | 17 ++++++++- dapr-spring/dapr-spring-data/pom.xml | 17 ++++++++- pom.xml | 37 +++++++++++++------ sdk-bom/pom.xml | 12 +++++- sdk-tests/pom.xml | 17 ++++++++- spring-boot-examples/pom.xml | 19 +++++++++- spring-boot-sdk-tests/pom.xml | 17 ++++++++- 9 files changed, 150 insertions(+), 22 deletions(-) diff --git a/dapr-spring/dapr-spring-boot-autoconfigure/pom.xml b/dapr-spring/dapr-spring-boot-autoconfigure/pom.xml index 42774d208d..f9c0019771 100644 --- a/dapr-spring/dapr-spring-boot-autoconfigure/pom.xml +++ b/dapr-spring/dapr-spring-boot-autoconfigure/pom.xml @@ -16,7 +16,7 @@ jar - 4.0.5 + 4.0.8 6.0.2 @@ -27,7 +27,7 @@ tools.jackson jackson-bom - 3.1.1 + 3.1.7 pom import @@ -40,6 +40,21 @@ pom import + + + com.fasterxml.jackson + jackson-bom + ${jackson.version} + pom + import + + + io.opentelemetry + opentelemetry-bom + ${opentelemetry.version} + pom + import + org.springframework.boot spring-boot-dependencies diff --git a/dapr-spring/dapr-spring-boot-starters/dapr-spring-boot-starter-test/pom.xml b/dapr-spring/dapr-spring-boot-starters/dapr-spring-boot-starter-test/pom.xml index d066446690..11933697fb 100644 --- a/dapr-spring/dapr-spring-boot-starters/dapr-spring-boot-starter-test/pom.xml +++ b/dapr-spring/dapr-spring-boot-starters/dapr-spring-boot-starter-test/pom.xml @@ -16,12 +16,27 @@ jar - 4.0.5 + 4.0.8 6.0.2 + + + com.fasterxml.jackson + jackson-bom + ${jackson.version} + pom + import + + + io.opentelemetry + opentelemetry-bom + ${opentelemetry.version} + pom + import + org.springframework.boot spring-boot-dependencies diff --git a/dapr-spring/dapr-spring-boot-starters/dapr-spring-boot-starter/pom.xml b/dapr-spring/dapr-spring-boot-starters/dapr-spring-boot-starter/pom.xml index bda7313ed8..a51229001f 100644 --- a/dapr-spring/dapr-spring-boot-starters/dapr-spring-boot-starter/pom.xml +++ b/dapr-spring/dapr-spring-boot-starters/dapr-spring-boot-starter/pom.xml @@ -16,7 +16,7 @@ jar - 4.0.5 + 4.0.8 6.0.2 @@ -32,6 +32,21 @@ pom import + + + com.fasterxml.jackson + jackson-bom + ${jackson.version} + pom + import + + + io.opentelemetry + opentelemetry-bom + ${opentelemetry.version} + pom + import + org.springframework.boot spring-boot-dependencies diff --git a/dapr-spring/dapr-spring-data/pom.xml b/dapr-spring/dapr-spring-data/pom.xml index 75b95f8a7b..4452333090 100644 --- a/dapr-spring/dapr-spring-data/pom.xml +++ b/dapr-spring/dapr-spring-data/pom.xml @@ -17,7 +17,7 @@ jar - 4.0.5 + 4.0.8 6.0.2 @@ -33,6 +33,21 @@ pom import + + + com.fasterxml.jackson + jackson-bom + ${jackson.version} + pom + import + + + io.opentelemetry + opentelemetry-bom + ${opentelemetry.version} + pom + import + org.springframework.boot spring-boot-dependencies diff --git a/pom.xml b/pom.xml index 6d36216bba..d920c43316 100644 --- a/pom.xml +++ b/pom.xml @@ -42,7 +42,7 @@ 17 17 true - 2.21.2 + 2.21.7 true true ${maven.multiModuleProjectDirectory}/spotbugs-exclude.xml @@ -52,10 +52,10 @@ 5.11.4 2.0 2.0.5 - 4.0.5 + 4.0.8 1.7.0 3.27.7 - 1.41.0 + 1.62.0 3.9.1 2.1.1 1.3.2 @@ -80,7 +80,7 @@ 2.1.0 5.5.1 - 4.2.16.Final + 4.2.17.Final 1.26.0 @@ -138,6 +138,22 @@ import pom + + + io.opentelemetry + opentelemetry-bom + ${opentelemetry.version} + pom + import + + + tools.jackson + jackson-bom + 3.1.7 + pom + import + org.springframework.boot spring-boot-dependencies @@ -159,13 +175,6 @@ pom import - - io.opentelemetry - opentelemetry-bom - ${opentelemetry.version} - pom - import - @@ -180,6 +189,12 @@ commons-codec 1.17.2 + + + org.apache.tomcat.embed + tomcat-embed-core + 11.0.25 + diff --git a/sdk-bom/pom.xml b/sdk-bom/pom.xml index f5b1942c41..523178d1d1 100644 --- a/sdk-bom/pom.xml +++ b/sdk-bom/pom.xml @@ -48,8 +48,9 @@ true 1.19.0-rc-1 - 4.2.16.Final - 2.21.2 + 4.2.17.Final + 2.21.7 + 1.62.0 1.26.0 @@ -152,6 +153,13 @@ pom import + + io.opentelemetry + opentelemetry-bom + ${opentelemetry.version} + pom + import + org.apache.commons commons-compress diff --git a/sdk-tests/pom.xml b/sdk-tests/pom.xml index 552968e6ee..93097728f2 100644 --- a/sdk-tests/pom.xml +++ b/sdk-tests/pom.xml @@ -26,7 +26,7 @@ 0% - 4.0.5 + 4.0.8 6.0.2 @@ -44,6 +44,21 @@ pom import + + + com.fasterxml.jackson + jackson-bom + ${jackson.version} + pom + import + + + io.opentelemetry + opentelemetry-bom + ${opentelemetry.version} + pom + import + org.springframework.boot spring-boot-dependencies diff --git a/spring-boot-examples/pom.xml b/spring-boot-examples/pom.xml index 9a3535e53c..249ebb96e7 100644 --- a/spring-boot-examples/pom.xml +++ b/spring-boot-examples/pom.xml @@ -15,7 +15,7 @@ true - 4.0.5 + 4.0.8 6.0.2 @@ -31,7 +31,7 @@ tools.jackson jackson-bom - 3.1.1 + 3.1.7 pom import @@ -44,6 +44,21 @@ pom import + + + com.fasterxml.jackson + jackson-bom + ${jackson.version} + pom + import + + + io.opentelemetry + opentelemetry-bom + ${opentelemetry.version} + pom + import + org.springframework.boot spring-boot-dependencies diff --git a/spring-boot-sdk-tests/pom.xml b/spring-boot-sdk-tests/pom.xml index 62a0500222..5813164807 100644 --- a/spring-boot-sdk-tests/pom.xml +++ b/spring-boot-sdk-tests/pom.xml @@ -19,7 +19,7 @@ true ${project.build.directory}/generated-sources ${project.basedir}/proto - 4.0.5 + 4.0.8 6.0.2 + + com.fasterxml.jackson + jackson-bom + ${jackson.version} + pom + import + + + io.opentelemetry + opentelemetry-bom + ${opentelemetry.version} + pom + import + org.springframework.boot spring-boot-dependencies