← Back to Pull requests

Align dependency families in the version catalog and clear security advisories #466

Closed
unknown closed this pull request without merging on Oct 05, 2026 20:55 UTC
View on GitHub
unknown unknown commented on Sep 30, 2026 07:52 UTC
Author

Summary

gradle/libs.versions.toml gave every library its own inline version, so single-artifact bumps (mostly Renovate security PRs) left library families split across versions: netty-codec 4.1.136 with the rest
of Netty on 4.1.119, derby ahead of derbytools, and jackson-core 2.18.8 with the rest of Jackson on 2.14.3. Resolution is non-transitive, so a mismatch like this shows up as a runtime linkage error, not
a build failure. It has already happened once: log4j-core was bumped without log4j-api and broke the build.

This PR moves families onto shared [versions] refs so a bump moves the whole family, realigns Netty and Derby, removes duplicate module versions, and tidies the catalog. Jackson is not realigned; see
below. Please review commit by commit. Each commit is self-contained and builds on its own, and the commits that change shipped jars are separate from the ones that only restructure the file.

## Commits

| # | Commit | Shipped jars change? |
|---|---|---|
| 1 | Share versions across library families (26 [versions] refs); document the Jackson blocker | No. Resolved dependency trees are identical |
| 2 | Unambiguous alias names (awssdk-, jasper-, hk2-, …), sorted file, one bundle entry per line | No. Same module:version set (classpath order changed; see notes) |
| 3 | Netty aligned on 4.1.137.Final, including the epoll jar pinned in server/build.gradle | Yes |
| 4 | derby + derbytools aligned on 10.12.1.1 (v4.6.0 shipped 10.10.2.0) | Yes |
| 5 | Remove duplicate JUnit (4.8.1 / 4.13.1) and javax-annotation-api (1.3 / 1.3.2) versions | cli-lib only (annotation-api 1.3 → 1.3.2); JUnit is test-only |
| 6 | OWASP dependency-check plugin moved to [plugins]; catalog header rewritten | No |

## Version choices

The rule used throughout: align each family on a version already in use, and go further only when a newer version clears known advisories (checked against OSV). Every target also meets Renovate's 14-day
minimumReleaseAge.

- Netty 4.1.137.Final: 4.1.119 has open advisories in codec, codec-http, codec-http2, handler and native-epoll. 4.1.136 still has GHSA-8c42-7qj2-3j46, CVE-2026-75595 and CVE-2026-75596. 4.1.137 has none in
any shipped module.
- Derby 10.12.1.1: v4.6.0 shipped 10.10.2.0, and derby has since been bumped alone to 10.11.1.1. Both of those are affected by CVE-2015-1832 (XXE in the embedded engine), which 10.12.1.1 fixes.
CVE-2018-1313 (network server, not shipped) and CVE-2022-46337 (LDAP authenticator, not used) remain. On Maven Central only 10.17.1.0 fixes the latter, and it needs a newer Java than our Java 17 toolchain.
- JUnit 4.13.1: already used by the server tests. 4.8.1 has CVE-2020-15250.

## Why Jackson is not realigned

An earlier revision aligned Jackson on 2.18.10, which clears all known databind advisories, and it failed integration tests with NoSuchMethodError: BeanDescription.findJsonValueMethod(). databind 2.16 and
later remove APIs that swagger-core 2.0.10 (findJsonValueMethod, findPropertiesToIgnore) and the AWS SDK 2.15.28 regions module (PASCAL_CASE_TO_CAMEL_CASE) still call. The last databind release with
all three is 2.15.4, which has more open advisories than today's 2.14.3. So Jackson stays exactly as it ships today (core 2.18.8, the rest 2.14.3). The catalog now documents the blocker next to jackson-core
and the jackson ref. Realigning Jackson needs swagger-core and the AWS SDK upgraded first, in a separate PR.

## Compatibility checks

- Linkage, all libraries: for every project's runtime and test classpath, I resolved every class, method and field reference in every jar against the rest of the classpath plus the JDK, and compared
oie/main with this branch. As a positive control, the check reproduces the Jackson 2.18.10 failure above. Result: no new unresolved references.
- Netty's optional LZ4 decoder references a different class in lz4-java, which has never shipped, so it's unresolved before and after.
- The alignment fixes real breaks. derbytools 10.10.2.0 called 12 Derby internals that don't exist in derby 10.11.1.1, and mockito needed org.junit.rules.TestRule, which JUnit 4.8.1 lacks.
- No new runtime dependencies: the Netty modules depend only on each other, and Derby 10.12 is still a single jar with no dependencies.
- Derby on-disk compatibility: v4.6.0 shipped Derby 10.10.2.0, so installs upgrade 10.10.2.0 → 10.12.1.1. Existing embedded databases are soft-upgraded on first start (database.url has no
upgrade=true). I tested it with the real server schema: a database created by 10.10.2.0, then used alternately by 10.12.1.1 and 10.10.2.0 (identity inserts, the donkey statistics CASE update, the alert and
message-search CASE queries), keeps its data dictionary at 10.10 and works in both directions, so rolling back to v4.6.0 works. None of the 13 incompatibilities in the 10.11 and 10.12 release notes affects
the engine's own SQL. User-written SQL against Derby that relies on the old behaviour (a CAST(NULL AS …) of the wrong type in a CASE, or XML external entities) would now fail; worth a release-note line.
- Classpath order (commit 2): sorting the bundles reorders the classpath. I compared which jar provides every class or resource that exists in more than one jar. The only change is about.html, a license
notice in both jetty's apache-jsp and ecj. Launcher manifest Class-Path entries are built from fixed lists of module names, so the new order doesn't affect them.

## Testing

- ./gradlew build dist -PdisableSigning=true -Pcoverage=true passes.
- verification-metadata.xml was regenerated with a cold GRADLE_USER_HOME for each commit that changes versions, as described in CONTRIBUTING.md. New entries are only the new versions and their parent POMs.
- Checked that server/setup stages only the new Netty and Derby jar versions, and the same Jackson jars as oie/main.
- The donkey (23) and command (6) tests pass on JUnit 4.13.1 with Hamcrest 2.2.

## Notes for reviewers

- Existing checkouts need a clean build. donkey/setup and command/build/cli-lib are filled by Copy tasks and keep old jar versions until ./gradlew clean. The shipped distribution isn't affected:
the server's syncDonkeyLibs excludes database/.
-
The epoll jar doesn't do anything today. netty-transport-native-epoll contains only the native library. The Java classes it needs (netty-transport-classes-epoll) have never shipped, so the AWS client
uses NIO. This PR only aligns the jar's version; removing it would be a separate change.
-
Old checksum entries are kept.
* --write-verification-metadata only adds entries, as the Renovate PRs have done. Pruning unused entries would be a separate cleanup.

🤖 Generated with Claude Code

Diff: 650 lines (+487 / -163) across 8 files Reviewer: pacmano1 Review duration: 7982m
All Vouch review confidence checks passed
Residual risk 0.30 = Change Risk (0.75) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.75 · 650 lines diff across 8 files
0.75
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.388
Shallow Review Depth shallow_review_depth
0.289
Sensitive Paths sensitive_paths
0.075
Real PR Conversation Timeline
1 comments
"Review active on #466"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed sensitive_module
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 75.2% (HIGH) · Higher = larger blast radius
75.2%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 29.7% · Safe to merge
29.7%