File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,6 +48,18 @@ dependencies {
4848 implementation(libs. rundeckCore) {
4949 exclude(group : " com.jcraft" )
5050 }
51+
52+ // Add secure commons-lang3 to provide alternative to vulnerable commons-lang 2.6
53+ implementation(libs. commonsLang3)
54+ }
55+
56+ configurations. all {
57+ resolutionStrategy {
58+ // Replace vulnerable commons-lang with secure commons-lang3
59+ dependencySubstitution {
60+ substitute module(' commons-lang:commons-lang' ) using module(" org.apache.commons:commons-lang3:${ libs.versions.commonsLang3.get()} " )
61+ }
62+ }
5163}
5264
5365// task to copy plugin libs to output/lib dir
Original file line number Diff line number Diff line change @@ -3,10 +3,13 @@ nexusPublish = "2.0.0"
33freemarker = " 2.3.34"
44rundeckCore = " 5.14.0-rc1-20250722"
55axionRelease = " 1.18.16"
6+ # Security overrides for transitive dependencies
7+ commonsLang3 = " 3.18.0"
68
79[libraries ]
810freemarker = { group = " org.freemarker" , name = " freemarker" , version.ref = " freemarker" }
911rundeckCore = { group = " org.rundeck" , name = " rundeck-core" , version.ref = " rundeckCore" }
12+ commonsLang3 = { module = " org.apache.commons:commons-lang3" , version.ref = " commonsLang3" }
1013
1114[plugins ]
1215axionRelease = { id = " pl.allegro.tech.build.axion-release" , version.ref = " axionRelease" }
You can’t perform that action at this time.
0 commit comments