File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -56,10 +56,22 @@ dependencies {
5656 implementation(libs. rundeckCore) {
5757 exclude group : " com.google.guava"
5858 }
59+
60+ // Add secure commons-lang3 to provide alternative to vulnerable commons-lang 2.6
61+ implementation(libs. commonsLang3)
5962
6063 testImplementation libs. bundles. testLibs
6164}
6265
66+ configurations. all {
67+ resolutionStrategy {
68+ // Replace vulnerable commons-lang with secure commons-lang3
69+ dependencySubstitution {
70+ substitute module(' commons-lang:commons-lang' ) using module(" org.apache.commons:commons-lang3:${ libs.versions.commonsLang3.get()} " )
71+ }
72+ }
73+ }
74+
6375// In this section you declare where to find the dependencies of your project
6476repositories {
6577 mavenCentral()
Original file line number Diff line number Diff line change @@ -4,11 +4,14 @@ groovy = "3.0.24"
44rundeckCore = " 5.14.0-rc1-20250722"
55nexusPublish = " 2.0.0"
66spock = " 2.3-groovy-3.0"
7+ # Security overrides for transitive dependencies
8+ commonsLang3 = " 3.18.0"
79
810[libraries ]
911rundeckCore = { group = " org.rundeck" , name = " rundeck-core" , version.ref = " rundeckCore" }
1012groovyAll = { group = " org.codehaus.groovy" , name = " groovy-all" , version.ref = " groovy" }
1113spockCore = { group = " org.spockframework" , name = " spock-core" , version.ref = " spock" }
14+ commonsLang3 = { group = " org.apache.commons" , name = " commons-lang3" , version.ref = " commonsLang3" }
1215
1316[bundles ]
1417testLibs = [" groovyAll" , " spockCore" ]
You can’t perform that action at this time.
0 commit comments