Skip to content

Commit

Permalink
Override Postgresql driver version from Micronaut due to CVE
Browse files Browse the repository at this point in the history
Mitigates CVE-2022-31197 temporarily until Micronaut updates
  • Loading branch information
chadlwilson committed Sep 16, 2022
1 parent 2e34730 commit 614c734
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ dependencies {
implementation("io.micronaut.flyway:micronaut-flyway")
implementation("io.micronaut.data:micronaut-data-jdbc")
implementation("io.micronaut.sql:micronaut-jdbc-hikari")
runtimeOnly("org.postgresql:postgresql")
runtimeOnly("org.postgresql:postgresql:42.5.0") // Remove version number when Micronaut has updated to 42.4.1+

// R2BDC data access (for use by all data sources)
implementation("io.micronaut.data:micronaut-data-r2dbc")
Expand Down Expand Up @@ -162,8 +162,8 @@ dependencies {
testRuntimeOnly("org.mariadb.jdbc:mariadb-java-client")

testRuntimeOnly("com.h2database:h2")
// Remove version number and excludes block when Micronaut has updated to at least 1.0.0.RELEASE
testRuntimeOnly("io.r2dbc:r2dbc-h2:1.0.0.RC1") {
// Remove version number and excludes block when Micronaut has updated to at least 1.0.0.RELEASE
exclude("io.projectreactor", "reactor-core")
}

Expand Down

0 comments on commit 614c734

Please sign in to comment.