Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ lazy val jdbc =
libraryDependencies ++= Seq(
"org.xerial" % "sqlite-jdbc" % SQLITE_JDBC_VERSION,
"org.duckdb" % "duckdb_jdbc" % "1.4.4.0",
"org.postgresql" % "postgresql" % "42.7.8",
"org.postgresql" % "postgresql" % "42.7.10",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

security-high high

The update to org.postgresql:postgresql to 42.7.10 correctly remediates CVE-2024-37887, a Man-in-the-Middle (MitM) vulnerability in version 42.7.8. This vulnerability could expose sensitive data due to the application's use of the default sslmode=prefer configuration in airframe-jdbc/src/main/scala/wvlet/airframe/jdbc/DbConfig.scala.

For improved maintainability and consistency, consider defining the postgresql dependency version as a val at the top of build.sbt, similar to SQLITE_JDBC_VERSION and SLF4J_VERSION. This would involve creating a val POSTGRESQL_VERSION = "42.7.10" and referencing it in the libraryDependencies block.

"com.zaxxer" % "HikariCP" % "7.0.2",
// For routing slf4j log to airframe-log
"org.slf4j" % "slf4j-jdk14" % SLF4J_VERSION
Expand Down
Loading