#148 - Aquasec - Criticals - Fix - CVE-2022-31183#149
#148 - Aquasec - Criticals - Fix - CVE-2022-31183#149miroslavpojer wants to merge 7 commits intomasterfrom
Conversation
- Fixed by update to dependencies with solved vulnerability.
WalkthroughBumped Doobie and Circe versions in Changes
Sequence Diagram(s)(Skipped — changes are dependency/version bumps and test modifications/removals; no control-flow diagrams necessary.) Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
💤 Files with no reviewable changes (1)
Comment |
| "org.tpolecat" %% "doobie-core" % "1.0.0-RC11", | ||
| "org.tpolecat" %% "doobie-hikari" % "1.0.0-RC11", | ||
| "org.tpolecat" %% "doobie-postgres" % "1.0.0-RC11", | ||
| "org.tpolecat" %% "doobie-postgres-circe" % "1.0.0-RC11", | ||
| "io.circe" %% "circe-generic" % "0.14.15" % Test |
There was a problem hiding this comment.
🧩 Analysis chain
Verify transitive Circe dependencies and RC stability.
The version updates appear to address CVE-2022-31183. However, please verify:
- That
doobie-postgres-circe1.0.0-RC11 transitively brings in Circe >= 0.14.2 (the fixed version) - That no other Circe modules in the codebase require updates
- That Doobie 1.0.0-RC11 is stable enough for production use
Run the following script to check transitive Circe dependencies and search for other Circe usage:
🏁 Script executed:
#!/bin/bash
# Check what version of circe is brought in by doobie-postgres-circe 1.0.0-RC11
echo "Checking Doobie 1.0.0-RC11 transitive dependencies..."
curl -s "https://repo1.maven.org/maven2/org/tpolecat/doobie-postgres-circe_2.13/1.0.0-RC11/doobie-postgres-circe_2.13-1.0.0-RC11.pom" | grep -A 2 "circe"
# Search for other circe dependencies in the project
echo -e "\n\nSearching for other circe dependencies in the project..."
rg -n --type=scala 'circe' -C 2Length of output: 7298
---
🌐 Web query:
```web
Doobie 1.0.0 release status stable version RC11
💡 Result:
Short answer: 1.0.0‑RC11 does not appear to be released. The latest published release series on Scala Index / mirrors is 1.0.0‑RC10 (released July 13, 2025). [1][2]
Sources:
- Scala Index listing for doobie artifacts (1.0.0‑RC10). [1]
- Sourceforge mirror showing v1.0.0‑RC10 (and prior RCs). [2]
---
🌐 Web query:
```web
Doobie 1.0.0 stable final release latest version
💡 Result:
There is no stable 1.0.0 final release — Doobie is still published as release candidates. The most recent published version I found is 1.0.0‑RC10 (released July 13, 2025). [1][2]
Sources:
- doobie-scalatest 1.0.0‑RC10 (index-dev.scala‑lang). [1]
- doobie-core 1.0.0‑RC9 (index.scala‑lang) — shows RC series leading to RC10. [2]
Update Doobie versions from 1.0.0-RC11 to 1.0.0-RC10.
Doobie 1.0.0-RC11 does not exist in public repositories; the latest published version is 1.0.0-RC10 (released July 13, 2025). Update all four Doobie dependencies on lines 48-51 to use 1.0.0-RC10 instead.
The Circe updates to 0.14.15 correctly address CVE-2022-31183 and align with transitive Circe dependencies from doobie-postgres-circe.
🤖 Prompt for AI Agents
In project/Dependencies.scala around lines 48 to 52, the four Doobie
dependencies currently reference the non-existent "1.0.0-RC11"; update
"org.tpolecat" %% "doobie-core", "doobie-hikari", "doobie-postgres", and
"doobie-postgres-circe" to use "1.0.0-RC10" instead; leave the Circe test
dependency ("io.circe" %% "circe-generic" % "0.14.15" % Test) as-is since it is
correct and aligns with the transitive Circe versions.
JaCoCo
|
JaCoCo
|
JaCoCo
|
|
The required update of libraries bring complex changes in implicits. The fix is not easy. |
|
@miroslavpojer what is the issue identified by Aquasec? And can I delete the branch? |
Release Notes:
Closes #148
Summary by CodeRabbit