From 13c1284289071259233820464f20713715af3200 Mon Sep 17 00:00:00 2001 From: Doug Cain Date: Fri, 6 Nov 2026 16:10:21 +0000 Subject: [PATCH] fix: raise bundled dependencies past published CVEs OpenSAML 4.0.1 pulls xmlsec 2.1.4, woodstox-core 5.0.3, httpclient 4.5.12, commons-io 2.6 and velocity-engine-core 2.2, all of which have published CVEs. Constrain each to the last release that still works with OpenSAML 4. xmlsec stays on 2.x, because 3.x and later need OpenSAML 5. --- java/cbsso-opensaml/app/build.gradle | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/java/cbsso-opensaml/app/build.gradle b/java/cbsso-opensaml/app/build.gradle index 0ff7a9b..f6f8781 100644 --- a/java/cbsso-opensaml/app/build.gradle +++ b/java/cbsso-opensaml/app/build.gradle @@ -42,6 +42,17 @@ dependencies { implementation "org.slf4j:slf4j-api:1.7.36" implementation "org.slf4j:slf4j-simple:1.7.36" + + // OpenSAML 4.0.1 resolves these transitively at versions with published CVEs. Raised to the last + // releases on each line OpenSAML 4 is compatible with; xmlsec stays on 2.x because 3.x and later + // need OpenSAML 5. + constraints { + implementation( "org.apache.santuario:xmlsec:2.3.4" ) { because "CVE-2021-40690, fixed in 2.2.3" } + implementation( "com.fasterxml.woodstox:woodstox-core:6.7.0" ) { because "CVE-2022-40151/40152, fixed in 6.4.0" } + implementation( "org.apache.httpcomponents:httpclient:4.5.14" ) { because "CVE-2020-13956, fixed in 4.5.13" } + implementation( "commons-io:commons-io:2.18.0" ) { because "CVE-2021-29425, fixed in 2.7" } + implementation( "org.apache.velocity:velocity-engine-core:2.4.1" ) { because "CVE-2020-13936, fixed in 2.3" } + } } // Apply a specific Java toolchain to ease working on different environments.