fix: upgrade H2 to 2.1.210 to resolve security vulnerabilities #2226
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Upgrade H2 to resolve security vulnerabilities
Issue
The H2 module in Doobie depends on H2 version 1.4.200 which has critical security vulnerabilities:
These vulnerabilities are fixed in H2 version 2.1.210 or above. There is no secure version in the 1.x line.
Changes
build.sbt
core
(test dependency)h2
(main dependency)h2-circe
(transitive dependency)hikari
(test dependency)specs2
(test dependency)scalatest
(test dependency)munit
(test dependency)weaver
(test dependency)refined
(test dependency)Testing
doobie-h2
moduleBreaking Changes
This is a major version upgrade of H2 (from 1.x to 2.x). Users should review the H2 2.x migration guide for any breaking changes that might affect their applications.
Security Impact
This update addresses critical security vulnerabilities that could allow:
Related
Fixes #2223