Skip to content

Commit

Permalink
fix: exclude unused vulnerable transitive dep bcprov-jdk15on
Browse files Browse the repository at this point in the history
- bcprov-jdk15on is a transitive dep we get from using
  spring-security-oauth2-autoconfigure, which is an EOL lib (and hence
  does not have further patches) we will replace.
- The bcprov-jdk15on version here is flagged with
  CVE-2020-0187 and CVE-2023-33201.
- Exclude bcprov-jdk15on to address these CVEs.
  • Loading branch information
peterhaochen47 committed Nov 20, 2023
1 parent 6a75a03 commit 1c501c0
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 6 deletions.
4 changes: 3 additions & 1 deletion applications/credhub-api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ dependencies {
implementation("org.springframework.boot:spring-boot-starter-actuator")
implementation("org.springframework.security:spring-security-web")
implementation('org.springframework.boot:spring-boot-starter-security')
implementation("org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure:${springSecurityOauth2AutoconfigureVersion}")
implementation("org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure:${springSecurityOauth2AutoconfigureVersion}") {
exclude(module: "bcprov-jdk15on")
}
implementation("org.springframework.security.oauth:spring-security-oauth2:${springSecurityOauth2Version}")

testImplementation project(path: ":components:test-support", configuration: "testOutput")
Expand Down
4 changes: 3 additions & 1 deletion backends/remote/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ dependencies {

implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure:${springSecurityOauth2AutoconfigureVersion}")
implementation("org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure:${springSecurityOauth2AutoconfigureVersion}") {
exclude(module: "bcprov-jdk15on")
}
testImplementation("org.springframework.boot:spring-boot-starter-test")

implementation('com.fasterxml.jackson.module:jackson-module-kotlin')
Expand Down
4 changes: 3 additions & 1 deletion components/auth/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ dependencies {
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.springframework.security:spring-security-web")
implementation('org.springframework.boot:spring-boot-starter-security')
implementation("org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure:${springSecurityOauth2AutoconfigureVersion}")
implementation("org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure:${springSecurityOauth2AutoconfigureVersion}") {
exclude(module: "bcprov-jdk15on")
}
implementation("org.springframework.security.oauth:spring-security-oauth2:${springSecurityOauth2Version}")
testImplementation("org.springframework.security:spring-security-test")
testImplementation("org.springframework.boot:spring-boot-starter-test")
Expand Down
4 changes: 3 additions & 1 deletion components/encryption/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ dependencies {

implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure:${springSecurityOauth2AutoconfigureVersion}")
implementation("org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure:${springSecurityOauth2AutoconfigureVersion}") {
exclude(module: "bcprov-jdk15on")
}
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("junit:junit")

Expand Down
4 changes: 3 additions & 1 deletion components/management/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ dependencies {
implementation project(":components:errors")

implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure:${springSecurityOauth2AutoconfigureVersion}")
implementation("org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure:${springSecurityOauth2AutoconfigureVersion}") {
exclude(module: "bcprov-jdk15on")
}
implementation("org.springframework.security.oauth:spring-security-oauth2:${springSecurityOauth2Version}")
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("junit:junit")
Expand Down
4 changes: 3 additions & 1 deletion components/test-support/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ dependencies {

implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure:${springSecurityOauth2AutoconfigureVersion}")
implementation("org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure:${springSecurityOauth2AutoconfigureVersion}") {
exclude(module: "bcprov-jdk15on")
}
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation('org.springframework.boot:spring-boot-starter-validation')

Expand Down

0 comments on commit 1c501c0

Please sign in to comment.